From 19548a7379fdf11e3faf353e65df41293ec227f5 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Wed, 12 Jan 2011 12:11:31 +0000 Subject: [PATCH] Fix use of uninitialised variable. This was SVN commit r8861. --- source/network/NetTurnManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/network/NetTurnManager.cpp b/source/network/NetTurnManager.cpp index 065c7e4c80..0bcdd431fa 100644 --- a/source/network/NetTurnManager.cpp +++ b/source/network/NetTurnManager.cpp @@ -57,7 +57,8 @@ static std::string Hexify(const std::string& s) CNetTurnManager::CNetTurnManager(CSimulation2& simulation, u32 defaultTurnLength, int clientId, IReplayLogger& replay) : m_Simulation2(simulation), m_CurrentTurn(0), m_ReadyTurn(1), m_TurnLength(defaultTurnLength), m_DeltaTime(0), - m_PlayerId(-1), m_ClientId(clientId), m_HasSyncError(false), m_Replay(replay) + m_PlayerId(-1), m_ClientId(clientId), m_HasSyncError(false), m_Replay(replay), + m_TimeWarpNumTurns(0) { // When we are on turn n, we schedule new commands for n+2. // We know that all other clients have finished scheduling commands for n (else we couldn't have got here).