From f739f8b1acd3d381015192636600bd3b38bdf28f Mon Sep 17 00:00:00 2001 From: vulcandth Date: Fri, 23 Dec 2022 18:48:14 -0600 Subject: [PATCH] Add table assert `DoBattleAnimFrame.Jumptable` --- engine/battle_anims/functions.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/battle_anims/functions.asm b/engine/battle_anims/functions.asm index 59a9ea446..6e6af6e12 100644 --- a/engine/battle_anims/functions.asm +++ b/engine/battle_anims/functions.asm @@ -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