bugfix string split
This commit is contained in:
@@ -1817,9 +1817,9 @@ LOG_ERROR("last_games from db = " << dbPlayerData.last_games);
|
|||||||
vector<string> last_games;
|
vector<string> last_games;
|
||||||
boost::split(last_games, dbPlayerData.last_games, boost::is_any_of(","));
|
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)
|
if(result[i].length() > 0)
|
||||||
tmpSession->GetPlayerData()->AddPlayerLastGame(stol(result[i]));
|
tmpSession->GetPlayerData()->AddPlayerLastGame(stol(last_games[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user