bugfix
This commit is contained in:
@@ -1815,7 +1815,8 @@ LOG_ERROR("last_games from db = " << dbPlayerData.last_games);
|
||||
std::vector<long> last_games;
|
||||
std::stringstream ss(dbPlayerData.last_games);
|
||||
for (string i; ss >> i;) {
|
||||
last_games.push_back(stol(i));
|
||||
if(i.length() > 0)
|
||||
last_games.push_back(stol(i));
|
||||
if (ss.peek() == ',')
|
||||
ss.ignore();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user