From a284f277504b93ec3f6e7135ce9dc7f2fcefab69 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sat, 20 Jun 2009 12:14:06 +0000 Subject: [PATCH] Fixing state transition when joining a game. Since this is synchronous now, order is important. --- src/net/common/serverlobbythread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 67f41a75..635141be 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -211,10 +211,10 @@ ServerLobbyThread::MoveSessionToGame(ServerGame &game, SessionWrapper session) session.sessionData->SetState(SessionData::Game); // Store it in the list of game sessions. m_gameSessionManager.AddSession(session); - // Add session to the game. - game.AddSession(session); // Set the game id of the session. session.sessionData->SetGameId(game.GetId()); + // Add session to the game. + game.AddSession(session); } void