diff --git a/src/dbofficial/serverdbthread.cpp b/src/dbofficial/serverdbthread.cpp index 094170b0..0a0ffecd 100644 --- a/src/dbofficial/serverdbthread.cpp +++ b/src/dbofficial/serverdbthread.cpp @@ -238,7 +238,6 @@ void ServerDBThread::SetPlayerLastGames(unsigned requestId, DB_id playerId, std::vector lastGames) { LOG_ERROR("ServerDBThread::SetPlayerLastGames() entered."); - // The game id param is added later (during init of the async op), because it may be unknown. string lastGamesFieldValue = "1,2,3"; string lastIp = "127.0.0.1"; list params; @@ -249,7 +248,7 @@ ServerDBThread::SetPlayerLastGames(unsigned requestId, DB_id playerId, std::vect params.push_back(lastIp); boost::shared_ptr asyncQuery( // @FIXME: why does AsyncDBPlayerLastGames not work? - new SingleAsyncDBQuery( + new AsyncDBPlayerLastGames( requestId, QUERY_PLAYER_LASTGAMES_PREPARE, params));