diff --git a/src/db/dbdefs.h b/src/db/dbdefs.h index defa67be..038c02f8 100644 --- a/src/db/dbdefs.h +++ b/src/db/dbdefs.h @@ -30,7 +30,7 @@ struct DBPlayerData { DB_id id; std::string secret; - std::string language; + std::string country; std::string last_login; }; diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 5a3301b0..8c606ce3 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1494,6 +1494,7 @@ ServerLobbyThread::UserValid(unsigned playerId, const DBPlayerData &dbPlayerData { SessionWrapper tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerId, true); tmpSession.playerData->SetDBId(dbPlayerData.id); + tmpSession.playerData->SetCountry(dbPlayerData.country); this->AuthChallenge(tmpSession, dbPlayerData.secret); }