From 8ad3f8de69f19cfc5e8748b11844f78df46f4b9a Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Fri, 13 Sep 2019 17:21:08 +0200 Subject: [PATCH] NULL check --- src/net/common/serverlobbythread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 5bb49daf..5491aee3 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1815,7 +1815,7 @@ LOG_ERROR("last_games from db = " << dbPlayerData.last_games); std::vector last_games; std::stringstream ss(dbPlayerData.last_games); for (long i; ss >> i;) { - if(!i.is_null()) + if(i > 0) last_games.push_back(i); if (ss.peek() == ',') ss.ignore();