From 63cf638805d1263eced5f299204ea6db7b35aa4c Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Fri, 13 Sep 2019 17:44:41 +0200 Subject: [PATCH] NULL check --- 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 feb22b93..5b98615c 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1814,9 +1814,9 @@ ServerLobbyThread::UserValid(unsigned playerId, const DBPlayerData &dbPlayerData LOG_ERROR("last_games from db = " << dbPlayerData.last_games); std::vector last_games; std::stringstream ss(dbPlayerData.last_games); - for (string i; ss >> i;) { + for (stol(i); ss >> i;) { if(i.length() > 0) - last_games.push_back(stol(i)); + last_games.push_back(i); if (ss.peek() == ',') ss.ignore(); }