session iteration
This commit is contained in:
@@ -457,9 +457,10 @@ ServerGame::StoreLastGames()
|
||||
|
||||
RankingMap::const_iterator i = m_rankingMap.begin();
|
||||
RankingMap::const_iterator end = m_rankingMap.end();
|
||||
boost::shared_ptr<SessionData> tmpSession;
|
||||
while (i != end) {
|
||||
LOG_ERROR("iterating m_rankingMap ... userId " << (*i).second.dbid);
|
||||
boost::shared_ptr<SessionData> tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid);
|
||||
tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid);
|
||||
if(tmpSession){
|
||||
tmpSession->GetPlayerData()->AddPlayerLastGame((long)time(NULL));
|
||||
LOG_ERROR("TimeStamp stored: " << tmpSession->GetPlayerData()->GetPlayerLastGames().back());
|
||||
|
||||
Reference in New Issue
Block a user