From 475da10605704fe5dd63f93dd32b7de13d1ef3fb Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 24 Jun 2010 11:27:21 +0000 Subject: [PATCH] - bugfix for end of game crash (end the network interface) --- source/glest_game/game/game.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/glest_game/game/game.cpp b/source/glest_game/game/game.cpp index 1852b7ae6..112be0e77 100644 --- a/source/glest_game/game/game.cpp +++ b/source/glest_game/game/game.cpp @@ -1035,6 +1035,8 @@ void Game::quitGame(){ SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); + NetworkManager::getInstance().end(); + program->setState(new BattleEnd(program, &stats)); }