summaryrefslogtreecommitdiff
path: root/engine/gfx
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-10-26 22:24:38 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-10-26 22:24:38 -0400
commitc85ba78b778a0e35c2fe7f97ed4e8fee1b3c7036 (patch)
treef3d25ab52cbb2d1e92c89e1ad976dcb929c05768 /engine/gfx
parent9dcdad5e60fbc10ba81ae127743c78a6b00d3dd5 (diff)
Use more assertions to ensure correct code and data
Diffstat (limited to 'engine/gfx')
-rw-r--r--engine/gfx/load_pics.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/gfx/load_pics.asm b/engine/gfx/load_pics.asm
index a8dc82892..98dbdc17b 100644
--- a/engine/gfx/load_pics.asm
+++ b/engine/gfx/load_pics.asm
@@ -208,7 +208,8 @@ GetMonBackpic:
push de
; These are assumed to be at the same address in their respective banks.
- ld hl, PokemonPicPointers ; UnownPicPointers
+ assert PokemonPicPointers == UnownPicPointers
+ ld hl, PokemonPicPointers
ld a, b
ld d, BANK(PokemonPicPointers)
cp UNOWN