diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 361debf3..41675cb3 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1814,8 +1814,8 @@ 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 (int i; ss >> i;) { - last_games.push_back(i); + for (long i; ss >> i;) { + last_games.push_back(atoll(i)); if (ss.peek() == ',') ss.ignore(); }