From a3062287acd8a52fdccfb4064685e1aa96b4a3e4 Mon Sep 17 00:00:00 2001 From: MysterD Date: Fri, 18 Feb 2022 18:38:26 -0800 Subject: [PATCH] fix compile error --- src/game/behaviors/bowser.inc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/behaviors/bowser.inc.c b/src/game/behaviors/bowser.inc.c index d6393ba3..f579b215 100644 --- a/src/game/behaviors/bowser.inc.c +++ b/src/game/behaviors/bowser.inc.c @@ -1246,8 +1246,9 @@ void bhv_bowser_loop(void) { int angleToPlayer = obj_angle_to_object(o, player); // look for animation difference and override + struct Animation* anim = NULL; if (o->oAnimations != NULL && networkBowserAnimationIndex <= 26) { - struct Animation* anim = o->oAnimations[networkBowserAnimationIndex]; + anim = o->oAnimations[networkBowserAnimationIndex]; if (anim != NULL && o->header.gfx.unk38.curAnim != anim) { geo_obj_init_animation(&o->header.gfx, &anim); }