From f44711082b1b454bf041527d60c6432e6a1e3f8d Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Sat, 14 Sep 2019 18:10:36 +0200 Subject: [PATCH] bugfix string split --- 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 65ecc6c2..8bf7255f 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1818,7 +1818,7 @@ LOG_ERROR("last_games from db = " << dbPlayerData.last_games); boost::split(last_games, dbPlayerData.last_games, boost::is_any_of(",")); for (int i = 0; i < last_games.size(); i++){ - if(result[i].length() > 0) + if(last_games[i].length() > 0) tmpSession->GetPlayerData()->AddPlayerLastGame(stol(last_games[i])); }