From 05bdcd1b4512105e54f2f466fc32007be478dfa5 Mon Sep 17 00:00:00 2001 From: lotodore Date: Thu, 1 Apr 2010 20:33:39 +0000 Subject: [PATCH] Fixing bug with language code. --- src/db/dbdefs.h | 2 +- src/net/common/serverlobbythread.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); }