summaryrefslogtreecommitdiff
path: root/data/battle/effect_command_pointers.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2021-03-08 07:01:30 -0800
committerGitHub <noreply@github.com>2021-03-08 07:01:30 -0800
commitf9431c6aab479601ee0229a109154fa4f8b8b889 (patch)
tree39a5c61fd37951b562c35db534d16146d531a7e5 /data/battle/effect_command_pointers.asm
parentfb3e541e86ac6c95ad027d9c5dac055f00643aa7 (diff)
parente950809640f81c5d621c39becc4dcce15a82c064 (diff)
Merge pull request #69 from Rangi42/tables
Verify data table sizes with table_width and assert_table_length macros
Diffstat (limited to 'data/battle/effect_command_pointers.asm')
-rw-r--r--data/battle/effect_command_pointers.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/battle/effect_command_pointers.asm b/data/battle/effect_command_pointers.asm
index d1f747a1..7239e815 100644
--- a/data/battle/effect_command_pointers.asm
+++ b/data/battle/effect_command_pointers.asm
@@ -4,6 +4,7 @@
BattleCommandPointers:
; entries correspond to macros/scripts/battle_commands.asm
+ table_width 2, BattleCommandPointers
dw BattleCommand_CheckTurn
dw BattleCommand_CheckObedience
dw BattleCommand_UsedMoveText
@@ -179,3 +180,4 @@ BattleCommandPointers:
dw BattleCommand_SuperEffectiveLoopText
dw BattleCommand_StartLoop
dw BattleCommand_Curl
+ assert_table_length NUM_EFFECT_COMMANDS