summaryrefslogtreecommitdiff
path: root/src/engine/home.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2018-02-07 20:18:24 +0100
committerxCrystal <rgr.crystal@gmail.com>2018-02-07 20:18:24 +0100
commitb9f2f4ee8e9218436b7ce36804bf404901f87d0f (patch)
tree1637f4a18b03c9b682f060320e34d606d13c73e8 /src/engine/home.asm
parent15a837c3a8a3f15bd0901de17582755f75437852 (diff)
Use const to enumerate constants
Diffstat (limited to 'src/engine/home.asm')
-rwxr-xr-xsrc/engine/home.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/home.asm b/src/engine/home.asm
index 2946235..01a66d0 100755
--- a/src/engine/home.asm
+++ b/src/engine/home.asm
@@ -5431,7 +5431,7 @@ LoadOpponentDeck: ; 2b78 (0:2b78)
inc a
call LoadDeck
ld a, [wOpponentDeckId]
- cp NUMBER_OF_DECKS
+ cp DECKS_END
jr c, .valid_deck
ld a, PRACTICE_PLAYER_DECK - 2
ld [wOpponentDeckId], a