bugfix
This commit is contained in:
@@ -461,10 +461,10 @@ ServerGame::StoreLastGames()
|
|||||||
boost::shared_ptr<SessionData> tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid);
|
boost::shared_ptr<SessionData> tmpSession = GetSessionManager().GetSessionByUniquePlayerId((*i).second.dbid);
|
||||||
|
|
||||||
|
|
||||||
if(tmpSession.size() > 0){
|
if(tmpSession){
|
||||||
std::vector<long> lastGames = tmpSession->GetPlayerData()->GetPlayerLastGames();
|
std::vector<long> lastGames = tmpSession->GetPlayerData()->GetPlayerLastGames();
|
||||||
|
|
||||||
if(lastGames)
|
if(lastGames.size() > 0)
|
||||||
//GetLobbyThread().GetDatabase().SetGamePlayerPlace(GetId(), (*i).second.dbid, lastGames);
|
//GetLobbyThread().GetDatabase().SetGamePlayerPlace(GetId(), (*i).second.dbid, lastGames);
|
||||||
LOG_VERBOSE("first timeStamp" << lastGames.front().first << ".");
|
LOG_VERBOSE("first timeStamp" << lastGames.front().first << ".");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user