session iteration
This commit is contained in:
1 parent
9ea49b6d1c
commit
ca8e11b18c
1 file changed
+2
-1
@@ -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