From 32c365daad3e2e1ec7c34576fa1fde58215fbb8b Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 1 Feb 2024 14:45:11 -0500 Subject: [PATCH] Match --- LEGO1/lego/legoomni/src/infocenter/infocenter.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp b/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp index b5965087..7869bb82 100644 --- a/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp +++ b/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp @@ -656,10 +656,12 @@ MxLong Infocenter::HandleNotification0(MxNotificationParam& p_param) case 5: { m_infoManDialogueTimer = 0; - LegoState::StateStruct& state = !GameState()->GetUnknown10() ? m_infocenterState->GetUnknown0x08() - : m_infocenterState->GetUnknown0x14(); + InfomainScript objectId; + if (GameState()->GetUnknown10()) + objectId = (InfomainScript) m_infocenterState->GetUnknown0x14().FUN_10014d00(); + else + objectId = (InfomainScript) m_infocenterState->GetUnknown0x08().FUN_10014d00(); - InfomainScript objectId = (InfomainScript) state.FUN_10014d00(); PlayAction(objectId); FUN_10015860(g_object2x4red, 0); FUN_10015860(g_object2x4grn, 0);