bugfix
This commit is contained in:
@@ -455,12 +455,17 @@ ServerGame::StoreLastGames()
|
|||||||
RankingMap::const_iterator i = m_rankingMap.begin();
|
RankingMap::const_iterator i = m_rankingMap.begin();
|
||||||
RankingMap::const_iterator end = m_rankingMap.end();
|
RankingMap::const_iterator end = m_rankingMap.end();
|
||||||
while (i != end) {
|
while (i != end) {
|
||||||
std::vector<long> lastGames = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid).GetPlayerLastGames();
|
|
||||||
|
|
||||||
if(lastGames)
|
boost::shared_ptr<SessionData> tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid);
|
||||||
//GetLobbyThread().GetDatabase().SetGamePlayerPlace(GetId(), (*i).second.dbid, lastGames);
|
|
||||||
LOG_VERBOSE("first timeStamp" << lastGames.front().first << ".");
|
|
||||||
|
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;
|
++i;
|
||||||
}
|
}
|
||||||
GetDatabase().EndGame(GetId());
|
GetDatabase().EndGame(GetId());
|
||||||
|
|||||||
Reference in New Issue
Block a user