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.
This commit is contained in:
Max Roncace
2026-03-13 01:35:23 -04:00
parent 2f984f160b
commit dae2aca542
+4
View File
@@ -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());