Fixing bug with language code.

This commit is contained in:
lotodore
2010-04-01 20:33:39 +00:00
parent e9b0139e6a
commit 05bdcd1b45
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ struct DBPlayerData
{ {
DB_id id; DB_id id;
std::string secret; std::string secret;
std::string language; std::string country;
std::string last_login; std::string last_login;
}; };
+1
View File
@@ -1494,6 +1494,7 @@ ServerLobbyThread::UserValid(unsigned playerId, const DBPlayerData &dbPlayerData
{ {
SessionWrapper tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerId, true); SessionWrapper tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerId, true);
tmpSession.playerData->SetDBId(dbPlayerData.id); tmpSession.playerData->SetDBId(dbPlayerData.id);
tmpSession.playerData->SetCountry(dbPlayerData.country);
this->AuthChallenge(tmpSession, dbPlayerData.secret); this->AuthChallenge(tmpSession, dbPlayerData.secret);
} }