Add table assert `DoBattleAnimFrame.Jumptable`

This commit is contained in:
vulcandth 2022-12-23 18:48:14 -06:00
parent 4387298b2c
commit f739f8b1ac
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ DoBattleAnimFrame:
.Jumptable:
; entries correspond to BATTLEANIMFUNC_* constants
table_width 2, DoBattleAnimFrame.Jumptable
dw BattleAnimFunction_Null
dw BattleAnimFunction_MoveFromUserToTarget
dw BattleAnimFunction_MoveFromUserToTargetAndDisappear
@ -93,6 +94,7 @@ DoBattleAnimFrame:
dw BattleAnimFunction_AncientPower
dw BattleAnimFunction_RockSmash
dw BattleAnimFunction_Cotton
assert_table_length NUM_BATTLEANIMFUNCS
BattleAnimFunction_Null:
call BattleAnim_AnonJumptable