summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-19 14:58:40 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-19 14:58:40 +0300
commit164e4ed5a153ce06badb52f3a5a4dff16c58d7e6 (patch)
tree635ac9f42f43be11b4192b9af78969191341cd89
parent220c16d60b9ab983536a9d17d8237fef983ce534 (diff)
downloadmv-164e4ed5a153ce06badb52f3a5a4dff16c58d7e6.tar.gz
mv-164e4ed5a153ce06badb52f3a5a4dff16c58d7e6.tar.bz2
mv-164e4ed5a153ce06badb52f3a5a4dff16c58d7e6.tar.xz
mv-164e4ed5a153ce06badb52f3a5a4dff16c58d7e6.zip
Fix loading client data translations.
-rw-r--r--src/client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index e09bbdcbc..e6aeb22e2 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1097,6 +1097,7 @@ int Client::gameExec()
case STATE_WORLD_SELECT:
logger->log1("State: WORLD SELECT");
{
+ TranslationManager::loadCurrentLang();
Worlds worlds = Net::getLoginHandler()->getWorlds();
if (worlds.empty())
@@ -1196,6 +1197,8 @@ int Client::gameExec()
if (!BeingInfo::unknown)
BeingInfo::unknown = new BeingInfo;
+ TranslationManager::loadCurrentLang();
+
Event evt2(EVENT_STATECHANGE);
evt2.setInt("newState", STATE_LOAD_DATA);
evt2.setInt("oldState", mOldState);