diff --git a/src/net/common/servergame.cpp b/src/net/common/servergame.cpp index 2f4c1fe5..aa7c3295 100644 --- a/src/net/common/servergame.cpp +++ b/src/net/common/servergame.cpp @@ -461,10 +461,10 @@ ServerGame::StoreLastGames() boost::shared_ptr tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid); - if(tmpSession.size() > 0){ + if(tmpSession){ std::vector lastGames = tmpSession->GetPlayerData()->GetPlayerLastGames(); - if(lastGames) + if(lastGames.size() > 0) //GetLobbyThread().GetDatabase().SetGamePlayerPlace(GetId(), (*i).second.dbid, lastGames); LOG_VERBOSE("first timeStamp" << lastGames.front().first << "."); }