From dae2aca54282c90375a7a5e0db96f79e6e20284c Mon Sep 17 00:00:00 2001 From: Max Roncace Date: Fri, 13 Mar 2026 01:35:23 -0400 Subject: [PATCH] Initialize daObjSwPr_c::mRotateTime on actor create This fixes a floating point exception due to division by zero when executing the actor for the first time. --- src/d/actor/d_a_obj_swpropeller.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/d/actor/d_a_obj_swpropeller.cpp b/src/d/actor/d_a_obj_swpropeller.cpp index f43d1dd516..957798805e 100644 --- a/src/d/actor/d_a_obj_swpropeller.cpp +++ b/src/d/actor/d_a_obj_swpropeller.cpp @@ -78,6 +78,10 @@ static char* l_arcName[] = {"K_prop00", "Lv9_puro"}; static char* l_joint_name = "kaiten"; int daObjSwPr_c::Create() { +#if AVOID_UB + mRotateTime = setRotateTime(); +#endif + initBaseMtx(); fopAcM_SetMtx(this, mpModel->getBaseTRMtx());