diff options
author | Jaromir Wysoglad | 2019-10-16 18:42:16 +0200 |
---|---|---|
committer | Jaromir Wysoglad | 2019-10-16 19:30:56 +0200 |
commit | b9d3c84db4e10cc0e55e4c2a12e288c17c7e66d2 (patch) | |
tree | a2c4d3931b78579b04a737094d29e2b6cf21a278 /gui | |
parent | 94d17b1853a77db0bf34cb6192d88a58d0766130 (diff) | |
download | scummvm-rg350-b9d3c84db4e10cc0e55e4c2a12e288c17c7e66d2.tar.gz scummvm-rg350-b9d3c84db4e10cc0e55e4c2a12e288c17c7e66d2.tar.bz2 scummvm-rg350-b9d3c84db4e10cc0e55e4c2a12e288c17c7e66d2.zip |
TTS: Fix language setting.
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); } |