From 09c4e09946f7bd7fbf46487ed841f8985824e839 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Tue, 10 Sep 2019 20:54:59 +0200 Subject: [PATCH] bugfix --- src/net/common/servergame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 << "."); }