diff options
author | Sven Hesse | 2007-03-07 19:57:24 +0000 |
---|---|---|
committer | Sven Hesse | 2007-03-07 19:57:24 +0000 |
commit | 71cc080fc5c7cf972a6c191cdd29aaf44a223bbb (patch) | |
tree | 2961714bd2b175d449e0d59e044e1fa7e20c6270 | |
parent | 5c1732af4d66c99cccd1d9593fbfc6c2fb2dbb1c (diff) | |
download | scummvm-rg350-71cc080fc5c7cf972a6c191cdd29aaf44a223bbb.tar.gz scummvm-rg350-71cc080fc5c7cf972a6c191cdd29aaf44a223bbb.tar.bz2 scummvm-rg350-71cc080fc5c7cf972a6c191cdd29aaf44a223bbb.zip |
Fixed the crash in the interlude before the last level in the Gobliiins CD-version
svn-id: r26009
-rw-r--r-- | engines/gob/cdrom.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/cdrom.cpp b/engines/gob/cdrom.cpp index 5e2de01643..fcc7ba5dcd 100644 --- a/engines/gob/cdrom.cpp +++ b/engines/gob/cdrom.cpp @@ -145,9 +145,11 @@ void CDROM::playMultMusic() { {"avt022.tot", "fra6", "all6", "ang6", "esp6", "ita6"} }; + // Default to "ang?" for other languages (including EN_USA) + int language = _vm->_global->_language <= 4 ? _vm->_global->_language : 2; for (int i = 0; i < ARRAYSIZE(tracks); i++) if (!scumm_stricmp(_vm->_game->_curTotFile, tracks[i][0])) { - startTrack(tracks[i][_vm->_global->_language + 1]); + startTrack(tracks[i][language + 1]); break; } } |