aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/game.cpp')
-rw-r--r--engines/gob/game.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp
index 3445c66074..acc3ee2194 100644
--- a/engines/gob/game.cpp
+++ b/engines/gob/game.cpp
@@ -344,7 +344,8 @@ void Game::freeSoundSlot(int16 slot) {
return;
if (_soundADL[slot]) {
- _vm->_music->stopPlay();
+ if (_vm->_music->getIndex() == slot)
+ _vm->_music->stopPlay();
if (_soundFromExt[slot] == 1) {
delete[] ((char *) _soundSamples[slot]);
_soundFromExt[slot] = 0;
@@ -866,8 +867,10 @@ char *Game::loadLocTexts(void) {
warning("Your game version doesn't support the requested language, using the first one available");
for (i = 0; i < 10; i++) {
handle = openLocTextFile(locTextFile, i);
- if (handle >= 0)
+ if (handle >= 0) {
_vm->_global->_language = i;
+ break;
+ }
}
}