diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 353d0e16e7..bc4e8d6551 100755 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -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);