Initialize DamageContext on declaration to zero (#8076)
This commit is contained in:
parent
712e087754
commit
ea3b72f43f
@ -897,7 +897,7 @@ struct SimulatedDamage AI_CalcDamage(u32 move, u32 battlerAtk, u32 battlerDef, u
|
||||
gBattleStruct->magnitudeBasePower = 70;
|
||||
gBattleStruct->presentBasePower = 80;
|
||||
|
||||
struct DamageContext ctx;
|
||||
struct DamageContext ctx = {0};
|
||||
ctx.battlerAtk = battlerAtk;
|
||||
ctx.battlerDef = battlerDef;
|
||||
ctx.move = move;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user