aboutsummaryrefslogtreecommitdiffstats
path: root/data/pokemon/palettes.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-03-25 16:33:05 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-03-25 16:44:41 -0400
commit95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1 (patch)
tree5a7b79846bd7f07e40310da46b21873774a08ef7 /data/pokemon/palettes.asm
parentRemove unused _GREEN TitleMons data (diff)
downloadpokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.tar.gz
pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.tar.xz
pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.zip
Verify data table and name list sizes with assertion macros
Fixes #312
Diffstat (limited to 'data/pokemon/palettes.asm')
-rw-r--r--data/pokemon/palettes.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/pokemon/palettes.asm b/data/pokemon/palettes.asm
index 8c4d0bc0..2ce500aa 100644
--- a/data/pokemon/palettes.asm
+++ b/data/pokemon/palettes.asm
@@ -1,4 +1,5 @@
MonsterPalettes:
+ table_width 1, MonsterPalettes
db PAL_MEWMON ; MISSINGNO
db PAL_GREENMON ; BULBASAUR
db PAL_GREENMON ; IVYSAUR
@@ -151,3 +152,4 @@ MonsterPalettes:
db PAL_BROWNMON ; DRAGONITE
db PAL_MEWMON ; MEWTWO
db PAL_MEWMON ; MEW
+ assert_table_length NUM_POKEMON + 1