aboutsummaryrefslogtreecommitdiffstats
path: root/data/maps/map_header_banks.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/maps/map_header_banks.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/maps/map_header_banks.asm')
-rw-r--r--data/maps/map_header_banks.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/maps/map_header_banks.asm b/data/maps/map_header_banks.asm
index d698cfee..87ec01cf 100644
--- a/data/maps/map_header_banks.asm
+++ b/data/maps/map_header_banks.asm
@@ -1,5 +1,6 @@
; see also MapHeaderPointers
MapHeaderBanks::
+ table_width 1, MapHeaderBanks
db BANK(PalletTown_h)
db BANK(ViridianCity_h)
db BANK(PewterCity_h)
@@ -248,3 +249,4 @@ MapHeaderBanks::
db BANK(LoreleisRoom_h)
db BANK(BrunosRoom_h)
db BANK(AgathasRoom_h)
+ assert_table_length NUM_MAPS