mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-09 04:30:49 -04:00
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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user