Add assert PokemonPicPointers == UnownPicPointers in GetFrontpicPointer

This commit is contained in:
Rangi
2021-10-06 17:44:34 -04:00
parent be7a5e09b5
commit bd45cfd5fd
2 changed files with 12 additions and 33 deletions

View File

@@ -109,13 +109,13 @@ GetFrontpicPointer:
ld a, [wCurPartySpecies]
ld d, BANK(PokemonPicPointers)
jr .ok
.unown
ld a, [wUnownLetter]
ld d, BANK(UnownPicPointers)
.ok
ld hl, PokemonPicPointers ; UnownPicPointers
; These are assumed to be at the same address in their respective banks.
assert PokemonPicPointers == UnownPicPointers
ld hl, PokemonPicPointers
dec a
ld bc, 6
call AddNTimes