minor issue

This commit is contained in:
Kai Philipp
2019-09-11 14:07:24 +02:00
parent f4b1d7a5f3
commit 7cda99e881
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -247,12 +247,10 @@ ServerDBThread::SetPlayerLastGames(unsigned requestId, DB_id playerId, std::vect
paramStream << playerId;
params.push_back(paramStream.str());
boost::shared_ptr<AsyncDBQuery> asyncQuery(
// @FIXME: why does AsyncDBPlayerLastGames not work?
new AsyncDBPlayerLastGames(
requestId,
QUERY_PLAYER_LASTGAMES_PREPARE,
params));
{
boost::mutex::scoped_lock lock(m_asyncQueueMutex);
m_asyncQueue.push(asyncQuery);
+1 -1
View File
@@ -466,7 +466,7 @@ ServerGame::StoreLastGames(const PlayerDataList &playerDataList)
LOG_ERROR("Ready for storing vector for player " << tmpPlayer->GetUniqueId() << " - lastGameTs " << lastGames.back());
if(tmpPlayer->GetUniqueId() != DB_ID_INVALID){
LOG_ERROR("ID != DB_ID_INVALID ... calling SetPlayerLastGames()...");
GetDatabase().SetPlayerLastGames(GetId(), tmpPlayer->GetUniqueId(), lastGames);
GetDatabase().SetPlayerLastGames(GetId(), tmpPlayer->GetDBId(), lastGames);
}
++i;
}