You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Verify script command table sizes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user