From 40a25f4a1e0918e1903a073214bcb17a9c6ce805 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Fri, 13 Sep 2019 15:05:22 +0200 Subject: [PATCH] bug enclosing --- 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 759729ed..cdeb6ef1 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("lastGames from db = " << dbPlayerData.lastGames); - std::vector lastGames; - std::stringstream ss(dbPlayerData.lastGames); - for (int i; ss >> i;) { - lastGames.push_back(i); - if (ss.peek() == ',') - ss.ignore(); - } - tmpSession->GetPlayerData()->SetPlayerLastGames(lastGames); -LOG_ERROR("lastGames first from vector after db = " << tmpSession->GetPlayerData()->GetPlayerLastGames().front()); +// std::vector lastGames; +// std::stringstream ss(dbPlayerData.lastGames); +// for (int i; ss >> i;) { +// lastGames.push_back(i); +// if (ss.peek() == ',') +// ss.ignore(); +// } +// tmpSession->GetPlayerData()->SetPlayerLastGames(lastGames); +// LOG_ERROR("lastGames first from vector after db = " << tmpSession->GetPlayerData()->GetPlayerLastGames().front()); this->AuthChallenge(tmpSession, dbPlayerData.secret); } }