From 373052a8c712a935fa999a7776d6fa2ef25aa458 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Tue, 10 Sep 2019 21:23:05 +0200 Subject: [PATCH] revert bugfix --- src/net/common/servergame.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/net/common/servergame.cpp b/src/net/common/servergame.cpp index b79e5092..eaac7d43 100644 --- a/src/net/common/servergame.cpp +++ b/src/net/common/servergame.cpp @@ -453,12 +453,11 @@ ServerGame::StoreLastGames() { // Store players lastgames in database. - PlayerIdList plist = GetPlayerIdList(); - - RankingMap::const_iterator i = plist.info.players.begin(); - RankingMap::const_iterator end = plist.info.players.end(); + RankingMap::const_iterator i = m_rankingMap.begin(); + RankingMap::const_iterator end = m_rankingMap.end(); +LOG_VERBOSE("StoreLastGames() entered."); while (i != end) { - +LOG_VERBOSE("iterating m_rankingMap ... userId " << (*i).second.dbid); boost::shared_ptr tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid);