From 18fc084a3f4320e47d7ef41b620dc32d4ee5d19c Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Tue, 17 Dec 2024 17:10:42 -0700 Subject: [PATCH] Match `LegoGameState::Load` (#1239) --- LEGO1/lego/legoomni/src/common/legogamestate.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/LEGO1/lego/legoomni/src/common/legogamestate.cpp b/LEGO1/lego/legoomni/src/common/legogamestate.cpp index e8835e82..ca462124 100644 --- a/LEGO1/lego/legoomni/src/common/legogamestate.cpp +++ b/LEGO1/lego/legoomni/src/common/legogamestate.cpp @@ -336,7 +336,7 @@ MxResult LegoGameState::Load(MxULong p_slot) } MxU32 version, status; - MxS16 count, area, act; + MxS16 count, actArea; const char* lightPosition; Read(&fileStorage, &version); @@ -348,8 +348,8 @@ MxResult LegoGameState::Load(MxULong p_slot) Read(&fileStorage, &m_unk0x24); - Read(&fileStorage, &act); - SetCurrentAct((Act) act); + Read(&fileStorage, &actArea); + SetCurrentAct((Act) actArea); Read(&fileStorage, &m_actorId); if (m_actorId) { @@ -406,13 +406,13 @@ MxResult LegoGameState::Load(MxULong p_slot) } } - Read(&fileStorage, &area); + Read(&fileStorage, &actArea); if (m_currentAct == 0) { m_unk0x42c = e_undefined; } else { - m_unk0x42c = (Area) area; + m_unk0x42c = (Area) actArea; } result = SUCCESS;