diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-10-06 17:44:37 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-10-06 17:44:37 -0400 |
commit | 24eafe25aac70478db299be52623c600bd58a886 (patch) | |
tree | a011793847cb0e4d73b8d1efda33a1fa268039fb | |
parent | 01c0b36a91900b1aceba503f61f30d805b592253 (diff) |
Add `assert PokemonPicPointers == UnownPicPointers` in `GetFrontpic`
-rw-r--r-- | engine/gfx/load_pics.asm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/gfx/load_pics.asm b/engine/gfx/load_pics.asm index 23d75e68..f155e116 100644 --- a/engine/gfx/load_pics.asm +++ b/engine/gfx/load_pics.asm @@ -77,7 +77,10 @@ GetFrontpic: push bc ld a, BANK(sDecompressBuffer) call OpenSRAM - ld hl, PokemonPicPointers ; UnownPicPointers + + ; These are assumed to be at the same address in their respective banks. + assert PokemonPicPointers == UnownPicPointers + ld hl, PokemonPicPointers ld a, [wCurPartySpecies] ld d, BANK(PokemonPicPointers) cp UNOWN |