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