summaryrefslogtreecommitdiff
path: root/engine/battle/ai/move.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle/ai/move.asm')
-rw-r--r--engine/battle/ai/move.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/ai/move.asm b/engine/battle/ai/move.asm
index df0053141..5ee4d0b92 100644
--- a/engine/battle/ai/move.asm
+++ b/engine/battle/ai/move.asm
@@ -50,7 +50,7 @@ AIChooseMove:
.CheckMovePP:
inc b
ld a, b
- cp wEnemyMonMovesEnd - wEnemyMonMoves + 1
+ cp NUM_MOVES + 1
jr z, .ApplyLayers
inc hl
ld a, [de]
@@ -119,7 +119,7 @@ AIChooseMove:
.DecrementScores:
ld hl, wBuffer1
ld de, wEnemyMonMoves
- ld c, wEnemyMonMovesEnd - wEnemyMonMoves
+ ld c, NUM_MOVES
.DecrementNextScore:
; If the enemy has no moves, this will infinite.