aboutsummaryrefslogtreecommitdiff
path: root/engines/bbvs/bbvs.cpp
diff options
context:
space:
mode:
authorVincent Bénony2016-01-06 16:20:23 +0100
committerVincent Bénony2016-01-06 16:20:23 +0100
commitefdb5679ce6304dbc854afbbc511e633d7513338 (patch)
treee680a240e5f6018fc3a4cce53b50060caa22a929 /engines/bbvs/bbvs.cpp
parent4687ff6d6d2863cc95c8137543ecf9c39bc01723 (diff)
parentb72c02bad44749a1355acefdb198e36b2e772575 (diff)
downloadscummvm-rg350-efdb5679ce6304dbc854afbbc511e633d7513338.tar.gz
scummvm-rg350-efdb5679ce6304dbc854afbbc511e633d7513338.tar.bz2
scummvm-rg350-efdb5679ce6304dbc854afbbc511e633d7513338.zip
IOS: Merge branch 'master' into ios-fix
Diffstat (limited to 'engines/bbvs/bbvs.cpp')
-rw-r--r--engines/bbvs/bbvs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/bbvs/bbvs.cpp b/engines/bbvs/bbvs.cpp
index 816b713b1f..d40d5e482f 100644
--- a/engines/bbvs/bbvs.cpp
+++ b/engines/bbvs/bbvs.cpp
@@ -118,15 +118,19 @@ BbvsEngine::BbvsEngine(OSystem *syst, const ADGameDescription *gd) :
Engine::syncSoundSettings();
+#ifdef USE_TRANSLATION
_oldGUILanguage = TransMan.getCurrentLanguage();
if (gd->flags & GF_GUILANGSWITCH)
TransMan.setLanguage(getLanguageLocale(gd->language));
+#endif
}
BbvsEngine::~BbvsEngine() {
+#ifdef USE_TRANSLATION
if (TransMan.getCurrentLanguage() != _oldGUILanguage)
TransMan.setLanguage(_oldGUILanguage);
+#endif
delete _random;