Merge pull request #2294 from LOuroboros/patch-2

Updated GetBattleMonMoveSlot
This commit is contained in:
Eduardo Quezada D'Ottone 2022-09-05 07:09:47 -03:00 committed by GitHub
commit 65a4d4ed44
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;
for (i = 0; i < 4; i++)
for (i = 0; i < MAX_MON_MOVES; i++)
{
if (battleMon->moves[i] == move)
break;