Fixed bug that cause the program to crash when closing if a server had been started.

Removed memory leaks in Client.cpp.
This commit is contained in:
Jocke
2015-12-09 14:41:26 +01:00
7 changed files with 90 additions and 31 deletions
+4 -3
View File
@@ -38,9 +38,10 @@ Game::Game(int argc, char* argv[])
// Create a TEST WORLD
m_World = new HardcodedTestWorld();
// TEMP: Invoke network
boost::thread workerThread(&Game::NetworkFunction, this);
// Invoke network
if(m_Config->Get<bool>("Networking.StartNetwork", false) == true)
boost::thread workerThread(&Game::NetworkFunction, this);
m_LastTime = glfwGetTime();
}