From 3c25633ee9fd1b77740f5c96ae64dacc612764b3 Mon Sep 17 00:00:00 2001 From: madeline Date: Tue, 28 Apr 2026 06:08:04 -0700 Subject: [PATCH] speed_target avoid ub --- src/d/actor/d_a_e_th.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/d/actor/d_a_e_th.cpp b/src/d/actor/d_a_e_th.cpp index f963350da4..43ad8ec19b 100644 --- a/src/d/actor/d_a_e_th.cpp +++ b/src/d/actor/d_a_e_th.cpp @@ -282,6 +282,11 @@ static void e_th_spin_B(e_th_class* i_this) { i_this->current.pos += spC; f32 speed_target; + + #if AVOID_UB + speed_target = 0; + #endif + f32 anm_frame = i_this->mpModelMorf->getFrame(); switch (i_this->mMode) {