fix protect struct reset
This commit is contained in:
parent
14f974c9a9
commit
fbf74a9988
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue