aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle')
-rw-r--r--engine/battle/core.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index c0d73bac..51d0c1b8 100644
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -6681,7 +6681,7 @@ BattleRandom:
add hl, bc
inc a
ld [wLinkBattleRandomNumberListIndex], a
- cp 9
+ cp SERIAL_RNS_LENGTH - 1
ld a, [hl]
pop bc
pop hl
@@ -6704,7 +6704,7 @@ ENDC
ld [wLinkBattleRandomNumberListIndex], a
ld hl, wLinkBattleRandomNumberList
- ld b, 9
+ ld b, SERIAL_RNS_LENGTH - 1
.loop
ld a, [hl]
ld c, a