This commit is contained in:
Kai Philipp
2019-09-11 04:52:41 +02:00
parent 8b223f6796
commit ff56a0629b
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -463,9 +463,10 @@ ServerGame::StoreLastGames(const PlayerDataList &playerDataList)
LOG_ERROR("TimeStamp stored: " << tmpPlayer->GetPlayerLastGames().back());
std::vector<long> lastGames = tmpPlayer->GetPlayerLastGames();
LOG_ERROR("Ready for storing vector for player " << tmpPlayer->GetUniqueId() << " - lastGameTs " << lastGames.back());
//if(tmpPlayer->GetUniqueId() != DB_ID_INVALID){
if(tmpPlayer->GetUniqueId() != DB_ID_INVALID){
LOG_ERROR("ID != DB_ID_INVALID ... calling SetPlayerLastGames()...");
GetDatabase().SetPlayerLastGames(GetId(), tmpPlayer->GetUniqueId(), lastGames);
//}
}
++i;
}
}