diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/gui-manager.cpp | 2 | ||||
-rw-r--r-- | gui/options.cpp | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp index 5a39746bad..659d87bef2 100644 --- a/gui/gui-manager.cpp +++ b/gui/gui-manager.cpp @@ -638,8 +638,6 @@ void GuiManager::initTextToSpeech() { Common::String currentLanguage = TransMan.getCurrentLanguage(); if (currentLanguage == "C") currentLanguage = "en"; - else - currentLanguage.setChar('\0', 2); ttsMan->setLanguage(currentLanguage); #endif int volume = (ConfMan.getInt("speech_volume", "scummvm") * 100) / 256; diff --git a/gui/options.cpp b/gui/options.cpp index 073d04b0a9..6cf7df0f08 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -2158,8 +2158,7 @@ void GlobalOptionsDialog::apply() { if (newLang == "C") ttsMan->setLanguage("en"); else { - Common::String guiLang(newLang.c_str(), 2); - ttsMan->setLanguage(guiLang); + ttsMan->setLanguage(newLang); } _ttsVoiceSelectionPopUp->setSelectedTag(0); } |