fix unitialized struct UB (#4808)
This commit is contained in:
parent
22994c79d4
commit
e5e38c13f3
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ static void SetBattlerAiMovesData(struct AiLogicData *aiData, u32 battlerAtk, u3
|
|||
SetBattlerData(battlerDef);
|
||||
for (i = 0; i < MAX_MON_MOVES; i++)
|
||||
{
|
||||
struct SimulatedDamage dmg;
|
||||
struct SimulatedDamage dmg = {0};
|
||||
u8 effectiveness = AI_EFFECTIVENESS_x0;
|
||||
u32 move = moves[i];
|
||||
|
||||
|
|
Loading…
Reference in a new issue