From 99917ca765ea21507f857265ef0c911d7eebcadc Mon Sep 17 00:00:00 2001 From: Ramen2X <64166386+Ramen2X@users.noreply.github.com> Date: Wed, 17 Jan 2024 16:24:22 -0500 Subject: [PATCH] initialize more members in LegoGameState (#451) --- LEGO1/lego/legoomni/src/common/legogamestate.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/LEGO1/lego/legoomni/src/common/legogamestate.cpp b/LEGO1/lego/legoomni/src/common/legogamestate.cpp index a470732e..22ad48d0 100644 --- a/LEGO1/lego/legoomni/src/common/legogamestate.cpp +++ b/LEGO1/lego/legoomni/src/common/legogamestate.cpp @@ -60,7 +60,15 @@ LegoGameState::LegoGameState() // TODO SetROIHandlerFunction(); - m_stateCount = 0; + this->m_stateCount = 0; + this->m_unk0xc = 0; + this->m_savePath = NULL; + this->m_unk0x424 = 0; + this->m_prevArea = 0; + this->m_unk0x42c = 0; + this->m_isDirty = FALSE; + this->m_currentAct = -1; + m_backgroundColor = new LegoBackgroundColor("backgroundcolor", "set 56 54 68"); VariableTable()->SetVariable(m_backgroundColor);