From 2deabc2f367e82a0096be296bca85d64bbb1b390 Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Mon, 5 Sep 2022 04:27:21 -0300 Subject: [PATCH] Quick update for GetBattleMonMoveSlot --- src/battle_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_util.c b/src/battle_util.c index c92d3690fc91..12eeec46639c 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -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;