revert bugfix

This commit is contained in:
Kai Philipp
2019-09-10 21:23:05 +02:00
parent 9d31fc3b5e
commit 373052a8c7
+4 -5
View File
@@ -453,12 +453,11 @@ ServerGame::StoreLastGames()
{ {
// Store players lastgames in database. // Store players lastgames in database.
PlayerIdList plist = GetPlayerIdList(); RankingMap::const_iterator i = m_rankingMap.begin();
RankingMap::const_iterator end = m_rankingMap.end();
RankingMap::const_iterator i = plist.info.players.begin(); LOG_VERBOSE("StoreLastGames() entered.");
RankingMap::const_iterator end = plist.info.players.end();
while (i != end) { while (i != end) {
LOG_VERBOSE("iterating m_rankingMap ... userId " << (*i).second.dbid);
boost::shared_ptr<SessionData> tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid); boost::shared_ptr<SessionData> tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid);