Fixing missing if-block.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user