mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-03 11:00:16 -04:00
Fix fopAcM_cullingCheck use after scope
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user