From 6681fe2102f15528ddec265949003735677fd7e9 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Sat, 14 Sep 2019 17:18:55 +0200 Subject: [PATCH] log_error --- src/net/common/serverlobbythread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 699a5a50..48880f75 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1812,15 +1812,15 @@ ServerLobbyThread::UserValid(unsigned playerId, const DBPlayerData &dbPlayerData tmpSession->GetPlayerData()->SetDBId(dbPlayerData.id); tmpSession->GetPlayerData()->SetCountry(dbPlayerData.country); LOG_ERROR("last_games from db = " << dbPlayerData.last_games); - std::vector last_games; + //std::vector last_games; std::stringstream ss(dbPlayerData.last_games); for (string i; ss >> i;) { if(i.length() > 0) - last_games.push_back(stod(i)); + tmpSession->GetPlayerData()->AddPlayerLastGame(stol(i)); if (ss.peek() == ',') ss.ignore(); } - tmpSession->GetPlayerData()->SetPlayerLastGames(last_games); + //tmpSession->GetPlayerData()->SetPlayerLastGames(last_games); LOG_ERROR("last_games first from vector after db = " << tmpSession->GetPlayerData()->GetPlayerLastGames().back()); this->AuthChallenge(tmpSession, dbPlayerData.secret); }