diff --git a/source/simulation2/system/SimContext.cpp b/source/simulation2/system/SimContext.cpp index b414b56709..28fe544336 100644 --- a/source/simulation2/system/SimContext.cpp +++ b/source/simulation2/system/SimContext.cpp @@ -24,7 +24,7 @@ #include "ps/Game.h" CSimContext::CSimContext() : - m_ComponentManager(NULL), m_UnitManager(NULL), m_Terrain(NULL), currentDisplayedPlayer(0) + m_ComponentManager(NULL), m_UnitManager(NULL), m_Terrain(NULL), m_CurrentDisplayedPlayer(0) { } @@ -67,10 +67,10 @@ ScriptInterface& CSimContext::GetScriptInterface() const int CSimContext::GetCurrentDisplayedPlayer() const { - return g_Game ? currentDisplayedPlayer : -1; + return g_Game ? m_CurrentDisplayedPlayer : -1; } void CSimContext::SetCurrentDisplayedPlayer(int player) { - currentDisplayedPlayer = player; + m_CurrentDisplayedPlayer = player; } diff --git a/source/simulation2/system/SimContext.h b/source/simulation2/system/SimContext.h index 72fa086f6f..0a8c7f5949 100644 --- a/source/simulation2/system/SimContext.h +++ b/source/simulation2/system/SimContext.h @@ -62,7 +62,7 @@ private: CEntityHandle m_SystemEntity; - int currentDisplayedPlayer; + int m_CurrentDisplayedPlayer; friend class CSimulation2Impl; };