mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-09 04:13:03 -05:00
fix unitialized struct UB (#4808)
This commit is contained in:
parent
22994c79d4
commit
e5e38c13f3
|
|
@ -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 New Issue
Block a user