Initialize DamageContext struct with zero values (#8107)

This commit is contained in:
Alex 2025-11-01 20:00:09 +01:00 committed by GitHub
commit 99d1030d98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);