This commit is contained in:
Kai Philipp
2019-09-10 04:50:24 +02:00
parent 709e898c51
commit aa93874a45
+7 -2
View File
@@ -455,12 +455,17 @@ ServerGame::StoreLastGames()
RankingMap::const_iterator i = m_rankingMap.begin();
RankingMap::const_iterator end = m_rankingMap.end();
while (i != end) {
std::vector<long> lastGames = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid).GetPlayerLastGames();
boost::shared_ptr<SessionData> tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid);
if(tmpSession){
std::vector<long> lastGames = tmpSession->GetPlayerLastGames();
if(lastGames)
//GetLobbyThread().GetDatabase().SetGamePlayerPlace(GetId(), (*i).second.dbid, lastGames);
LOG_VERBOSE("first timeStamp" << lastGames.front().first << ".");
}
++i;
}
GetDatabase().EndGame(GetId());