aboutsummaryrefslogtreecommitdiffstats
path: root/engine/menu
diff options
context:
space:
mode:
authorU-Daniel-PC\Daniel <corrnondacqb@yahoo.com>2015-02-20 00:56:30 -0500
committerU-Daniel-PC\Daniel <corrnondacqb@yahoo.com>2015-02-20 01:01:57 -0500
commit084c8407d879e114453147b737528da46f3b1cb5 (patch)
tree9a79ad35940fa484c1faead3b95bf0820bc18c53 /engine/menu
parentMerge remote-tracking branch 'origin/master' (diff)
downloadpokeyellow-084c8407d879e114453147b737528da46f3b1cb5.tar.gz
pokeyellow-084c8407d879e114453147b737528da46f3b1cb5.tar.xz
pokeyellow-084c8407d879e114453147b737528da46f3b1cb5.zip
Remove hard-coded wPokedexOwned/wPokedexSeen array size
Diffstat (limited to 'engine/menu')
-rwxr-xr-xengine/menu/pokedex.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/menu/pokedex.asm b/engine/menu/pokedex.asm
index e636e59d..4351ae4c 100755
--- a/engine/menu/pokedex.asm
+++ b/engine/menu/pokedex.asm
@@ -194,7 +194,7 @@ HandlePokedexListMenu: ; 40111 (10:4111)
call PlaceString
; find the highest pokedex number among the pokemon the player has seen
ld hl,wPokedexSeenEnd - 1
- ld b,153
+ ld b,(wPokedexSeenEnd - wPokedexSeen) * 8 + 1
.maxSeenPokemonLoop
ld a,[hld]
ld c,8