fix protect struct reset

This commit is contained in:
ghoulslash 2021-12-01 15:30:07 -05:00
parent 14f974c9a9
commit fbf74a9988

View file

@ -212,7 +212,7 @@ u8 BattleAI_ChooseMoveOrAction(void)
// Clear protect structures, some flags may be set during AI calcs // Clear protect structures, some flags may be set during AI calcs
// e.g. pranksterElevated from GetMovePriority // e.g. pranksterElevated from GetMovePriority
memset(&gProtectStructs[gActiveBattler], 0, sizeof(struct ProtectStruct)); memset(&gProtectStructs, 0, MAX_BATTLERS_COUNT * sizeof(struct ProtectStruct));
gCurrentMove = savedCurrentMove; gCurrentMove = savedCurrentMove;
return ret; return ret;