diff options
Diffstat (limited to 'scumm/imuse_digi/dimuse_music.cpp')
-rw-r--r-- | scumm/imuse_digi/dimuse_music.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scumm/imuse_digi/dimuse_music.cpp b/scumm/imuse_digi/dimuse_music.cpp index 48c81bf4f7..78170ddb66 100644 --- a/scumm/imuse_digi/dimuse_music.cpp +++ b/scumm/imuse_digi/dimuse_music.cpp @@ -412,13 +412,12 @@ int IMuseDigital::getSoundIdByName(const char *soundName) { } void IMuseDigital::fadeOutMusic(int fadeDelay) { + Common::StackLock lock(_mutex); debug(5, "IMuseDigital::fadeOutMusic"); for (int l = 0; l < MAX_DIGITAL_TRACKS; l++) { - _track[l].locked = true; if (_track[l].used) { parseScriptCmds(14, _track[l].soundId, 0x600, 0, fadeDelay, 0, 0, 0); } - _track[l].locked = false; } } |