Skip to content

Commit

Permalink
Use SERIAL_RNS_LENGTH in BattleRandom
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Dec 22, 2024
1 parent f92ebdc commit a59c2bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/battle/core.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a59c2bb

Please sign in to comment.