diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-07 14:57:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-07 21:38:21 +0300 |
commit | ae550d179c25e149f7e8a8d70011b364fb0d85d6 (patch) | |
tree | c4dabe3e38afc8b343e3946202eb6fa5f30a18a9 /src/utils/translation/translationmanager.cpp | |
parent | 2566e68d2502d39c9f7c9d83ce4b281e2834fe29 (diff) | |
download | manaplus-ae550d179c25e149f7e8a8d70011b364fb0d85d6.tar.gz manaplus-ae550d179c25e149f7e8a8d70011b364fb0d85d6.tar.bz2 manaplus-ae550d179c25e149f7e8a8d70011b364fb0d85d6.tar.xz manaplus-ae550d179c25e149f7e8a8d70011b364fb0d85d6.zip |
some fixes after auto check.
Diffstat (limited to 'src/utils/translation/translationmanager.cpp')
-rw-r--r-- | src/utils/translation/translationmanager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp index e15ff0c0a..0a9a40c09 100644 --- a/src/utils/translation/translationmanager.cpp +++ b/src/utils/translation/translationmanager.cpp @@ -37,15 +37,13 @@ void TranslationManager::init() { - if (translator) - delete translator; + delete translator; translator = PoParser::getEmptyDict(); } void TranslationManager::loadCurrentLang() { - if (translator) - delete translator; + delete translator; translator = loadLang(getLang(), ""); translator = loadLang(getLang(), "help/", translator); } |