Account for terminator in sTrappingMoves
This commit is contained in:
parent
bf786c6c9a
commit
3f1ce399e6
1 changed files with 1 additions and 1 deletions
|
@ -2983,7 +2983,7 @@ void SetMoveEffect(bool32 primary, u32 certain)
|
|||
|
||||
for (gBattleCommunication[MULTISTRING_CHOOSER] = 0; ; gBattleCommunication[MULTISTRING_CHOOSER]++)
|
||||
{
|
||||
if (gBattleCommunication[MULTISTRING_CHOOSER] > ARRAY_COUNT(sTrappingMoves))
|
||||
if (gBattleCommunication[MULTISTRING_CHOOSER] > ARRAY_COUNT(sTrappingMoves) - 1)
|
||||
break;
|
||||
if (sTrappingMoves[gBattleCommunication[MULTISTRING_CHOOSER]] == gCurrentMove)
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue