diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-11 16:28:52 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-11 16:28:52 -0500 |
commit | d132a20b7aa5e0e411683e792d90947ab195e1d4 (patch) | |
tree | 59727c340e155aeaedd004919c4ec732bb5c35da /engine/overworld/scripting.asm | |
parent | dbabd8b4a94014749a9c2a6f36ed524947c4403e (diff) |
Verify script command table sizes
Diffstat (limited to 'engine/overworld/scripting.asm')
-rw-r--r-- | engine/overworld/scripting.asm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/overworld/scripting.asm b/engine/overworld/scripting.asm index 0470247d4..230ce4e53 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 @@ -233,6 +234,7 @@ ScriptCommandTable: dw Script_getname ; a7 dw Script_wait ; a8 dw Script_checksave ; a9 + assert_table_length NUM_EVENT_COMMANDS StartScript: ld hl, wScriptFlags |