TTS: Fix language setting.

This commit is contained in:
Jaromir Wysoglad 2019-10-16 18:42:16 +02:00
parent 94d17b1853
commit b9d3c84db4
6 changed files with 19 additions and 11 deletions

View file

@ -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;