From 6146a71dddde9ad190e1cc911ccc52eac67685c2 Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Fri, 13 Sep 2019 18:52:00 +0200 Subject: [PATCH] bugfix --- src/net/common/serverlobbythread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index eebfeb27..9269e80d 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1815,8 +1815,8 @@ LOG_ERROR("last_games from db = " << dbPlayerData.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(stol(i)); + if(ss.length() > 0) + last_games.push_back(stol(ss)); if (ss.peek() == ',') ss.ignore(); }