Initialize DamageContext struct with zero values (#8107)
This commit is contained in:
commit
99d1030d98
@ -1806,7 +1806,7 @@ static void Cmd_damagecalc(void)
|
||||
|
||||
u32 moveTarget = GetBattlerMoveTargetType(gBattlerAttacker, gCurrentMove);
|
||||
|
||||
struct DamageContext ctx;
|
||||
struct DamageContext ctx = {0};
|
||||
ctx.battlerAtk = gBattlerAttacker;
|
||||
ctx.move = gCurrentMove;
|
||||
ctx.moveType = GetBattleMoveType(gCurrentMove);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user