From c618c12ff16f887b3de025218bc619afcf5b2622 Mon Sep 17 00:00:00 2001 From: Causeless Date: Fri, 29 Dec 2023 17:39:35 +0000 Subject: [PATCH] Fixed uninitialized data causing illegitimate player input locking --- Activities/GameActivity.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Activities/GameActivity.cpp b/Activities/GameActivity.cpp index 2a7386611..05d3b7b6f 100644 --- a/Activities/GameActivity.cpp +++ b/Activities/GameActivity.cpp @@ -75,6 +75,8 @@ void GameActivity::Clear() m_InventoryMenuGUI[player] = nullptr; m_pBuyGUI[player] = 0; m_pEditorGUI[player] = 0; + m_LuaLockActor[player] = false; + m_LuaLockActorMode[player] = Controller::InputMode::CIM_AI; m_pBannerRed[player] = 0; m_pBannerYellow[player] = 0; m_BannerRepeats[player] = 0; @@ -174,6 +176,8 @@ int GameActivity::Create(const GameActivity &reference) m_InventoryMenuGUI[player] = new InventoryMenuGUI; m_pBuyGUI[player] = new BuyMenuGUI; m_pEditorGUI[player] = new SceneEditorGUI; + m_LuaLockActor[player] = reference.m_LuaLockActor[player]; + m_LuaLockActorMode[player] = reference.m_LuaLockActorMode[player]; m_pBannerRed[player] = new GUIBanner(); m_pBannerYellow[player] = new GUIBanner(); m_ReadyToStart[player] = reference.m_ReadyToStart[player];