diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/gui-manager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp index 82f7591ae8..9f4af81e42 100644 --- a/gui/gui-manager.cpp +++ b/gui/gui-manager.cpp @@ -630,10 +630,11 @@ void GuiManager::initTextToSpeech() { return; #ifdef USE_TRANSLATION Common::String currentLanguage = TransMan.getCurrentLanguage(); - if (currentLanguage != "C") { + if (currentLanguage == "C") + currentLanguage = "en"; + else currentLanguage.setChar('\0', 2); - ttsMan->setLanguage(currentLanguage); - } + ttsMan->setLanguage(currentLanguage); #endif int volume = (ConfMan.getInt("speech_volume", "scummvm") * 100) / 256; if (ConfMan.hasKey("mute", "scummvm") && ConfMan.getBool("mute", "scummvm")) |