diff --git a/src/d/actor/d_a_ep.cpp b/src/d/actor/d_a_ep.cpp index 5d5a753ef..d1e17b69c 100644 --- a/src/d/actor/d_a_ep.cpp +++ b/src/d/actor/d_a_ep.cpp @@ -108,7 +108,7 @@ BOOL ep_switch_event_move(ep_class* i_this) { if (dComIfGp_evmng_getIsAddvance(i_this->m7E0)) { static char* actions[] = { "WAIT", "FIRE" }; - ret = dComIfGp_evmng_getMyActIdx(i_this->m7E0, actions, 2, FALSE, 0); + ret = dComIfGp_evmng_getMyActIdx(i_this->m7E0, actions, ARRAY_SIZE(actions), FALSE, 0); switch (ret) { case 1: mDoAud_seStart(JA_SE_OBJ_TORCH_IGNITION, &i_this->mPosTop); diff --git a/src/d/actor/d_a_mdoor.cpp b/src/d/actor/d_a_mdoor.cpp index 35e3753bc..5069fe438 100644 --- a/src/d/actor/d_a_mdoor.cpp +++ b/src/d/actor/d_a_mdoor.cpp @@ -202,7 +202,7 @@ void daMdoor_c::demoProc() { "WAIT", "CLOSE", "STOP_OPEN", }; - s32 actIdx = dComIfGp_evmng_getMyActIdx(m2C0, action_table, 3, 0, 0); + s32 actIdx = dComIfGp_evmng_getMyActIdx(m2C0, action_table, ARRAY_SIZE(action_table), 0, 0); if (dComIfGp_evmng_getIsAddvance(m2C0)) { switch (actIdx) { diff --git a/src/d/actor/d_a_player_fan.inc b/src/d/actor/d_a_player_fan.inc index e2ea7d90e..a7c5cbf0b 100644 --- a/src/d/actor/d_a_player_fan.inc +++ b/src/d/actor/d_a_player_fan.inc @@ -171,10 +171,10 @@ void daPy_lk_c::setParachuteFanModel(f32 f31) { mpEquipItemModel = mpParachuteFanMorf->getModel(); mDoExt_setCurrentHeap(oldHeap); mpEquipItemModel->setUserArea(reinterpret_cast(this)); - modelData->getJointNodePointer(0x01)->setCallBack(daPy_parachuteJointCallback); // skeleton_root_Lroot joint - modelData->getJointNodePointer(0x07)->setCallBack(daPy_parachuteJointCallback); // skeleton_root_Rroot joint - modelData->getJointNodePointer(0x03)->setCallBack(daPy_parachuteJointCallback); // skeleton_root_LarmB joint - modelData->getJointNodePointer(0x09)->setCallBack(daPy_parachuteJointCallback); // skeleton_root_RarmB joint + modelData->getJointNodePointer(0x01)->setCallBack(daPy_parachuteJointCallback); // Lroot joint + modelData->getJointNodePointer(0x07)->setCallBack(daPy_parachuteJointCallback); // Rroot joint + modelData->getJointNodePointer(0x03)->setCallBack(daPy_parachuteJointCallback); // LarmB joint + modelData->getJointNodePointer(0x09)->setCallBack(daPy_parachuteJointCallback); // RarmB joint } /* 8014C254-8014C34C .text procFanSwing_init__9daPy_lk_cFv */ @@ -414,7 +414,7 @@ BOOL daPy_lk_c::procFanGlide() { } else { if (!dComIfGp_event_runCheck()) { m3574--; - if (m3574 == 0 && (!(dComIfGs_getMagic() < 1))) { + if (m3574 == 0 && dComIfGs_getMagic() >= 1) { dComIfGp_setItemMagicCount(-1); m3574 = daPy_HIO_fan_c0::m.field_0x8; } diff --git a/src/d/actor/d_a_stone.cpp b/src/d/actor/d_a_stone.cpp index 2945710dc..6dbd56e2d 100644 --- a/src/d/actor/d_a_stone.cpp +++ b/src/d/actor/d_a_stone.cpp @@ -596,7 +596,6 @@ bool Act_c::damage_bg_proc() { /* 000021F4-000023F4 .text damage_bg_proc_directly__Q27daStone5Act_cFv */ bool Act_c::damage_bg_proc_directly() { - fopAc_ac_c* a_this = (fopAc_ac_c*)this; bool uVar7 = mAcch.ChkGroundHit(); bool iVar9 = false; bool cVar4; @@ -636,7 +635,7 @@ bool Act_c::damage_bg_proc_directly() { } else if (uVar7) { if (m678 == 0 && m674 == 0) { if (!iVar9) { - fopAcM_seStart(a_this, data().m90, dComIfG_Bgsp()->GetMtrlSndId(mAcch.m_gnd)); + fopAcM_seStart(this, data().m90, dComIfG_Bgsp()->GetMtrlSndId(mAcch.m_gnd)); eff_land_smoke(); } m678 = 1; diff --git a/src/d/d_camera.cpp b/src/d/d_camera.cpp index 4111056f3..45c786f80 100644 --- a/src/d/d_camera.cpp +++ b/src/d/d_camera.cpp @@ -4052,7 +4052,7 @@ bool dCamera_c::eventCamera(s32) { m100 = 0; m11C = 0; } - lVar12 = dComIfGp_evmng_getMyActIdx(mEventData.mStaffIdx, ActionNames, 0x1C, 0, 0); + lVar12 = dComIfGp_evmng_getMyActIdx(mEventData.mStaffIdx, ActionNames, ARRAY_SIZE(ActionNames), 0, 0); } else { mEventData.mStaffIdx = -1;