Skip to content

Commit

Permalink
Add table assert DoBattleAnimFrame.Jumptable
Browse files Browse the repository at this point in the history
  • Loading branch information
vulcandth committed Dec 24, 2022
1 parent 4387298 commit f739f8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/battle_anims/functions.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -93,6 +94,7 @@ DoBattleAnimFrame:
dw BattleAnimFunction_AncientPower
dw BattleAnimFunction_RockSmash
dw BattleAnimFunction_Cotton
assert_table_length NUM_BATTLEANIMFUNCS

BattleAnimFunction_Null:
call BattleAnim_AnonJumptable
Expand Down

0 comments on commit f739f8b

Please sign in to comment.