bugfix string split

This commit is contained in:
Kai Philipp
2019-09-14 18:14:34 +02:00
parent f44711082b
commit 7303d235a0
2 changed files with 1 additions and 14 deletions
-13
View File
@@ -1821,19 +1821,6 @@ LOG_ERROR("last_games from db = " << dbPlayerData.last_games);
if(last_games[i].length() > 0)
tmpSession->GetPlayerData()->AddPlayerLastGame(stol(last_games[i]));
}
// std::stringstream ss(dbPlayerData.last_games);
// for (string i; ss >> i;) {
// if(i.length() > 0){
// LOG_ERROR("adding lastGame " << i);
// tmpSession->GetPlayerData()->AddPlayerLastGame(stol(i));
// }
// if (ss.peek() == ',')
// ss.ignore();
// }
//tmpSession->GetPlayerData()->SetPlayerLastGames(last_games);
LOG_ERROR("last_games last from vector after db = " << tmpSession->GetPlayerData()->GetPlayerLastGames().back());
this->AuthChallenge(tmpSession, dbPlayerData.secret);
}