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:
+4
-3
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user