Fixed the crash in the interlude before the last level in the Gobliiins CD-version

svn-id: r26009
This commit is contained in:
Sven Hesse 2007-03-07 19:57:24 +00:00
parent 5c1732af4d
commit 71cc080fc5

View File

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