log_error

This commit is contained in:
Kai Philipp
2019-09-14 17:18:55 +02:00
parent 1f6758f3dc
commit 6681fe2102
+3 -3
View File
@@ -1812,15 +1812,15 @@ ServerLobbyThread::UserValid(unsigned playerId, const DBPlayerData &dbPlayerData
tmpSession->GetPlayerData()->SetDBId(dbPlayerData.id);
tmpSession->GetPlayerData()->SetCountry(dbPlayerData.country);
LOG_ERROR("last_games from db = " << dbPlayerData.last_games);
std::vector<long> last_games;
//std::vector<long> last_games;
std::stringstream ss(dbPlayerData.last_games);
for (string i; ss >> i;) {
if(i.length() > 0)
last_games.push_back(stod(i));
tmpSession->GetPlayerData()->AddPlayerLastGame(stol(i));
if (ss.peek() == ',')
ss.ignore();
}
tmpSession->GetPlayerData()->SetPlayerLastGames(last_games);
//tmpSession->GetPlayerData()->SetPlayerLastGames(last_games);
LOG_ERROR("last_games first from vector after db = " << tmpSession->GetPlayerData()->GetPlayerLastGames().back());
this->AuthChallenge(tmpSession, dbPlayerData.secret);
}