Fixing missing if-block.

This commit is contained in:
lotodore
2013-10-05 13:10:40 +02:00
parent 38de2754e3
commit 917f49c8bf
+2
View File
@@ -1835,8 +1835,10 @@ ServerLobbyThread::TimerRemoveGame(const boost::system::error_code &ec)
++next; ++next;
boost::shared_ptr<ServerGame> tmpGame = i->second; boost::shared_ptr<ServerGame> tmpGame = i->second;
if (!tmpGame->GetSessionManager().HasSessionWithState(SessionData::Game)) if (!tmpGame->GetSessionManager().HasSessionWithState(SessionData::Game))
{
tmpGame->MoveSpectatorsToLobby(); tmpGame->MoveSpectatorsToLobby();
InternalRemoveGame(tmpGame); // This will delete the game. InternalRemoveGame(tmpGame); // This will delete the game.
}
i = next; i = next;
} }
// Restart timer // Restart timer