Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Fixed uninitialized data causing illegitimate player input locking
Browse files Browse the repository at this point in the history
  • Loading branch information
Causeless committed Dec 29, 2023
1 parent 3bfd11a commit c618c12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Activities/GameActivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit c618c12

Please sign in to comment.