diff --git a/include/battle.h b/include/battle.h index c3c38162dc14..1251239d1ea1 100644 --- a/include/battle.h +++ b/include/battle.h @@ -826,7 +826,7 @@ struct BattleStruct u8 distortedTypeMatchups; u8 categoryOverride; // for Z-Moves and Max Moves u8 commandingDondozo; - u16 commanderActive[NUM_BATTLE_SIDES]; + u16 commanderActive[MAX_BATTLERS_COUNT]; u32 stellarBoostFlags[NUM_BATTLE_SIDES]; // stored as a bitfield of flags for all types for each side u8 redCardActivates:1; u8 usedEjectItem;