Skip to content

Commit

Permalink
Merge pull request #80 from dannye/master
Browse files Browse the repository at this point in the history
Remove hard-coded wPokedexOwned/wPokedexSeen array size
  • Loading branch information
dannye committed Feb 20, 2015
2 parents b65c6e8 + 084c840 commit d8d0893
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/menu/pokedex.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/oakslab.asm
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ OaksLabText5: ; 1d248 (7:5248)
bit 6, a
jr nz, .asm_50e81 ; 0x1d24e
ld hl, wPokedexOwned
ld b, $13
ld b, wPokedexOwnedEnd - wPokedexOwned
call CountSetBits
ld a, [wd11e]
cp $2
Expand Down

0 comments on commit d8d0893

Please sign in to comment.