From a667b65a223f36cfcce490dc32f3979133114f96 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Tue, 10 Sep 2019 20:54:10 +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 60690ac6..2f4c1fe5 100644 --- a/src/net/common/servergame.cpp +++ b/src/net/common/servergame.cpp @@ -461,8 +461,8 @@ ServerGame::StoreLastGames() boost::shared_ptr tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid); - if(tmpSession){ - std::vector lastGames = tmpSession->->GetPlayerData()->GetPlayerLastGames(); + if(tmpSession.size() > 0){ + std::vector lastGames = tmpSession->GetPlayerData()->GetPlayerLastGames(); if(lastGames) //GetLobbyThread().GetDatabase().SetGamePlayerPlace(GetId(), (*i).second.dbid, lastGames);