From e31daf2c150e800f7dc4f12518e95c7227becbdd Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 21 Dec 2024 15:11:00 -0700 Subject: [PATCH] Fix --- LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp b/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp index bdade411..717239ae 100644 --- a/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp +++ b/LEGO1/lego/legoomni/src/entity/legonavcontroller.cpp @@ -718,10 +718,10 @@ MxLong LegoNavController::Notify(MxParam& p_param) LegoROI* roi = CharacterManager()->GetActorROI(CharacterManager()->GetActorName(g_unk0x100f66cc), TRUE); if (roi != NULL) { MxMatrix mat; - ViewROI* roi = LegoOmni::GetInstance()->GetVideoManager()->GetViewROI(); - const float* position = roi->GetWorldPosition(); - const float* direction = roi->GetWorldDirection(); - const float* up = roi->GetWorldUp(); + ViewROI* viewRoi = LegoOmni::GetInstance()->GetVideoManager()->GetViewROI(); + const float* position = viewRoi->GetWorldPosition(); + const float* direction = viewRoi->GetWorldDirection(); + const float* up = viewRoi->GetWorldUp(); CalcLocalTransform(position, direction, up, mat); mat.TranslateBy(direction[0] * 2.0f, direction[1] - 1.0, direction[2] * 2.0f); roi->UpdateTransformationRelativeToParent(mat);