diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 4454afba..feb22b93 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1816,7 +1816,7 @@ LOG_ERROR("last_games from db = " << dbPlayerData.last_games); std::stringstream ss(dbPlayerData.last_games); for (string i; ss >> i;) { if(i.length() > 0) - last_games.push_back(atol(i)); + last_games.push_back(stol(i)); if (ss.peek() == ',') ss.ignore(); }