mirror of https://github.com/pret/pokecrystal.git
Fix reviewed issues.
Pokedex_PrintListing has a comment noting how it depends on wCurSpecies == wNamedObjectIndexBuffer; an assert would be more convenient, but is not possible since WRAM label addresses are not defined yet here.
This commit is contained in:
parent
c9cb67141b
commit
b5a9e83a94
|
@ -381,7 +381,7 @@ TMHM_DisplayPocketItems:
|
|||
ld [wTempTMHM], a
|
||||
.okay
|
||||
predef GetTMHMMove
|
||||
ld a, [wTempTMHM]
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
ld [wPutativeTMHMMove], a
|
||||
call GetMoveName
|
||||
pop hl
|
||||
|
|
|
@ -1492,7 +1492,7 @@ Pokedex_PrintListing:
|
|||
.loop
|
||||
push af
|
||||
ld a, [de]
|
||||
ld [wTempSpecies], a
|
||||
ld [wTempSpecies], a ; also sets wNamedObjectIndexBuffer
|
||||
push de
|
||||
push hl
|
||||
call .PrintEntry
|
||||
|
|
|
@ -2,7 +2,7 @@ NamesPointers::
|
|||
; entries correspond to GetName constants (see constants/text_constants.asm)
|
||||
dba PokemonNames ; MON_NAME (not used; jumps to GetPokemonName)
|
||||
dba MoveNames ; MOVE_NAME
|
||||
dbw 0, NULL ; DUMMY_NAME
|
||||
dba NULL ; DUMMY_NAME
|
||||
dba ItemNames ; ITEM_NAME
|
||||
dbw 0, wPartyMonOT ; PARTY_OT_NAME
|
||||
dbw 0, wOTPartyMonOT ; ENEMY_OT_NAME
|
||||
|
|
Loading…
Reference in New Issue