mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-08 19:16:01 -05:00
Remove potential uninitialized behavior (#5393)
`MAX_BATTLERS_COUNT` makes more sense to use here because we iterate over max battlers in the first place.
This commit is contained in:
@@ -8935,7 +8935,7 @@ static bool32 ChangeOrderTargetAfterAttacker(void)
|
||||
|| GetBattlerTurnOrderNum(gBattlerAttacker) + 1 == GetBattlerTurnOrderNum(gBattlerTarget))
|
||||
return FALSE;
|
||||
|
||||
for (i = 0; i < gBattlersCount; i++)
|
||||
for (i = 0; i < MAX_BATTLERS_COUNT; i++)
|
||||
{
|
||||
data[i] = gBattlerByTurnOrder[i];
|
||||
actionsData[i] = gActionsByTurnOrder[i];
|
||||
|
||||
Reference in New Issue
Block a user