SCI: Fix regression in r41833.

svn-id: r41834
This commit is contained in:
Walter van Niftrik 2009-06-24 19:26:06 +00:00
parent 06144864e1
commit 1d0f4782fc

View File

@ -181,6 +181,10 @@ Common::String EngineState::strSplit(const char *str, const char *sep) {
kLanguage lang = (kLanguage)GET_SEL32V(s->game_obj, printLang);
kLanguage subLang = (kLanguage)GET_SEL32V(s->game_obj, subtitleLang);
// Use English when no language settings are present in the game
if (lang == K_LANG_NONE)
lang = K_LANG_ENGLISH;
Common::String retval = getLanguageString(str, lang);
if ((subLang != K_LANG_NONE) && (sep != NULL)) {