mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-21 03:33:36 +01:00
fix protect struct reset
This commit is contained in:
parent
14f974c9a9
commit
fbf74a9988
@ -212,7 +212,7 @@ u8 BattleAI_ChooseMoveOrAction(void)
|
||||
|
||||
// Clear protect structures, some flags may be set during AI calcs
|
||||
// e.g. pranksterElevated from GetMovePriority
|
||||
memset(&gProtectStructs[gActiveBattler], 0, sizeof(struct ProtectStruct));
|
||||
memset(&gProtectStructs, 0, MAX_BATTLERS_COUNT * sizeof(struct ProtectStruct));
|
||||
|
||||
gCurrentMove = savedCurrentMove;
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user