diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/battle_anims/anim_commands.asm | 2 | ||||
-rw-r--r-- | engine/overworld/movement.asm | 2 | ||||
-rw-r--r-- | engine/overworld/scripting.asm | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm index 5f41d2314..a5ecdb393 100644 --- a/engine/battle_anims/anim_commands.asm +++ b/engine/battle_anims/anim_commands.asm @@ -329,6 +329,7 @@ RunBattleAnimCommand: BattleAnimCommands:: ; entries correspond to anim_* constants (see macros/scripts/battle_anims.asm) + table_width 2, BattleAnimCommands dw BattleAnimCmd_Obj dw BattleAnimCmd_1GFX dw BattleAnimCmd_2GFX @@ -377,6 +378,7 @@ BattleAnimCommands:: dw BattleAnimCmd_Loop dw BattleAnimCmd_Call dw BattleAnimCmd_Ret + assert_table_length $100 - FIRST_BATTLE_ANIM_CMD BattleAnimCmd_EA: BattleAnimCmd_EB: diff --git a/engine/overworld/movement.asm b/engine/overworld/movement.asm index ec9d56288..6a8e242b0 100644 --- a/engine/overworld/movement.asm +++ b/engine/overworld/movement.asm @@ -1,5 +1,6 @@ MovementPointers: ; entries correspond to movement_* constants (see macros/scripts/movement.asm) + table_width 2, MovementPointers dw Movement_turn_head_down ; 00 dw Movement_turn_head_up ; 01 dw Movement_turn_head_left ; 02 @@ -90,6 +91,7 @@ MovementPointers: dw Movement_rock_smash ; 57 dw Movement_return_dig ; 58 dw Movement_skyfall_top ; 59 + assert_table_length NUM_MOVEMENT_CMDS Movement_teleport_from: ld hl, OBJECT_STEP_TYPE 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 |