summaryrefslogtreecommitdiff
path: root/engine/overworld/scripting.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-03-11 16:28:52 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2021-03-11 16:31:40 -0500
commitdc17d58170e80c4679c391017492da613fea3236 (patch)
treef082094bb56a6cff255a34c5b1e43aaa3ee7c477 /engine/overworld/scripting.asm
parent0d185fbd88a5fa3d205553555d75c1c0ee397ec6 (diff)
Verify script command table sizes
Diffstat (limited to 'engine/overworld/scripting.asm')
-rw-r--r--engine/overworld/scripting.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/overworld/scripting.asm b/engine/overworld/scripting.asm
index c2909437..631ee418 100644
--- a/engine/overworld/scripting.asm
+++ b/engine/overworld/scripting.asm
@@ -63,6 +63,7 @@ RunScriptCommand:
ScriptCommandTable:
; entries correspond to *_command constants (see macros/scripts/events.asm)
+ table_width 2, ScriptCommandTable
dw Script_scall ; 00
dw Script_farscall ; 01
dw Script_memcall ; 02
@@ -225,6 +226,7 @@ ScriptCommandTable:
dw Script_halloffame ; 9f
dw Script_credits ; a0
dw Script_warpfacing ; a1
+ assert_table_length NUM_EVENT_COMMANDS
StartScript:
ld hl, wScriptFlags