From b8d84e32b918a1bba4e76c31ff82647fc07db878 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Fri, 13 Sep 2019 19:09:48 +0200 Subject: [PATCH] bugfix --- src/net/common/serverlobbythread.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 94ffe838..623649e7 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1815,12 +1815,13 @@ LOG_ERROR("last_games from db = " << dbPlayerData.last_games); std::vector last_games; std::stringstream ss(dbPlayerData.last_games); for (string i; ss >> i;) { - last_games.push_back(stol(ss)); + if(i.length() > 0) + last_games.push_back(stod(i)); if (ss.peek() == ',') ss.ignore(); } -// tmpSession->GetPlayerData()->SetPlayerLastGames(last_games); -LOG_ERROR("last_games first from vector after db = " << tmpSession->GetPlayerData()->GetPlayerLastGames().back()); + tmpSession->GetPlayerData()->SetPlayerLastGames(last_games); +//LOG_ERROR("last_games first from vector after db = " << tmpSession->GetPlayerData()->GetPlayerLastGames().back()); this->AuthChallenge(tmpSession, dbPlayerData.secret); } }