From 1f3ff9dddb46bb726a01bcdd56a715f127bcbce7 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 17 Jan 2024 09:14:31 -0500 Subject: [PATCH] Fix --- LEGO1/lego/legoomni/src/infocenter/infocenter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp b/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp index 235c1f1c..8900d8a6 100644 --- a/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp +++ b/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp @@ -370,14 +370,14 @@ MxLong Infocenter::HandleKeyPress(MxS8 p_key) case 1: case 4: break; - default: - result = (MxU32) m_currentInfomainScript; + default: { + InfomainScript script = m_currentInfomainScript; StopCurrentDialogue(); switch (m_infocenterState->GetUnknown0x74()) { case 5: case 12: - m_currentInfomainScript = (InfomainScript) result; + m_currentInfomainScript = script; return 1; default: m_infocenterState->SetUnknown0x74(2); @@ -386,6 +386,7 @@ MxLong Infocenter::HandleKeyPress(MxS8 p_key) case 11: break; } + } case 13: StopCredits(); break;