From 97cac10b9a57d636914f6817834e5527290e2956 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Fri, 13 Sep 2019 16:56:14 +0200 Subject: [PATCH] uncommented --- src/net/common/serverlobbythread.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 0ac024dd..361debf3 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::stringstream ss(dbPlayerData.last_games); -// for (int i; ss >> i;) { -// last_games.push_back(i); -// if (ss.peek() == ',') -// ss.ignore(); -// } -// tmpSession->GetPlayerData()->SetPlayerLastGames(last_games); -// LOG_ERROR("last_games first from vector after db = " << tmpSession->GetPlayerData()->GetPlayerLastGames().front()); + std::vector last_games; + std::stringstream ss(dbPlayerData.last_games); + for (int i; ss >> i;) { + last_games.push_back(i); + if (ss.peek() == ',') + ss.ignore(); + } + tmpSession->GetPlayerData()->SetPlayerLastGames(last_games); +LOG_ERROR("last_games first from vector after db = " << tmpSession->GetPlayerData()->GetPlayerLastGames().front()); this->AuthChallenge(tmpSession, dbPlayerData.secret); } }