summaryrefslogtreecommitdiff
path: root/engine/gfx
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-10-24 18:25:44 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-10-24 18:28:54 -0400
commit187b120007f14b2b7f44bad5a33de6021ec07d1a (patch)
treec2762cea026eab148626b7f522cc4bcb4d44ace8 /engine/gfx
parentd4a6a1b2bcf94915020f2a6c96b8004479185325 (diff)
Add assertions to some more tables
Diffstat (limited to 'engine/gfx')
-rw-r--r--engine/gfx/color.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/gfx/color.asm b/engine/gfx/color.asm
index b6d1a2b2e..af7b7cd3d 100644
--- a/engine/gfx/color.asm
+++ b/engine/gfx/color.asm
@@ -1170,7 +1170,9 @@ INCLUDE "gfx/sgb/pal_packets.asm"
INCLUDE "data/sgb_ctrl_packets.asm"
PredefPals:
+ table_width PALETTE_SIZE, PredefPals
INCLUDE "gfx/sgb/predef.pal"
+ assert_table_length NUM_PREDEF_PALS
SGBBorderMapAndPalettes:
; interleaved tile ids and palette ids, without the center 20x18 screen area