Quick update for GetBattleMonMoveSlot

This commit is contained in:
LOuroboros 2022-09-05 04:27:21 -03:00 committed by GitHub
parent 1ba46e0b01
commit 2deabc2f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7913,7 +7913,7 @@ u8 GetBattleMonMoveSlot(struct BattlePokemon *battleMon, u16 move)
{ {
u8 i; u8 i;
for (i = 0; i < 4; i++) for (i = 0; i < MAX_MON_MOVES; i++)
{ {
if (battleMon->moves[i] == move) if (battleMon->moves[i] == move)
break; break;