From 4bdddfe4dc42301fa60e0ef18738b166340c03c2 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Tue, 9 Apr 2024 16:22:28 -0300 Subject: [PATCH] avoid ub --- src/engine/fox_enmy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/fox_enmy.c b/src/engine/fox_enmy.c index e5b1f318..6224403a 100644 --- a/src/engine/fox_enmy.c +++ b/src/engine/fox_enmy.c @@ -1498,7 +1498,11 @@ void ActorMissileSeek_Update(Actor* this) { Vec3f sp98; Vec3f sp8C; f32 sp88; +#ifdef AVOID_UB + f32 sp84 = 0; +#else f32 sp84; +#endif f32 sp80; f32 sp7C; f32 sp78;