Add table assert DoBattleAnimFrame.Jumptable

This commit is contained in:
vulcandth 2022-12-23 18:48:14 -06:00
parent 4387298b2c
commit f739f8b1ac

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