Fix fopAcM_cullingCheck use after scope

This commit is contained in:
PJB3005
2026-03-16 15:53:15 +01:00
parent 1e1dc8d88e
commit b383fad1ad
+5
View File
@@ -1020,10 +1020,15 @@ cull_sphere l_cullSizeSphere[fopAc_CULLSPHERE_MAX_e] = {
s32 fopAcM_cullingCheck(fopAc_ac_c const* i_actor) {
MtxP mtx_p;
#if AVOID_UB
Mtx concat_mtx;
#endif
if (fopAcM_GetMtx(i_actor) == NULL) {
mtx_p = j3dSys.getViewMtx();
} else {
#if !AVOID_UB
Mtx concat_mtx;
#endif
cMtx_concat(j3dSys.getViewMtx(), fopAcM_GetMtx(i_actor), concat_mtx);
mtx_p = concat_mtx;
}