aboutsummaryrefslogtreecommitdiff
path: root/scumm/imuse_digi
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/imuse_digi')
-rw-r--r--scumm/imuse_digi/dimuse.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/imuse_digi/dimuse.cpp b/scumm/imuse_digi/dimuse.cpp
index 6b09a9ff79..69c11a637b 100644
--- a/scumm/imuse_digi/dimuse.cpp
+++ b/scumm/imuse_digi/dimuse.cpp
@@ -95,8 +95,11 @@ int IMuseDigital::pullProc(CustomProcInputStream *stream, byte *mixerBuffer, int
byte *data = NULL;
int32 result = 0, pos = 0;
- if (_track[l]->curRegion == -1)
+ if (_track[l]->curRegion == -1) {
switchToNextRegion(l);
+ if (_track[l]->toBeRemoved)
+ continue;
+ }
int bits = _sound->getBits(_track[l]->soundHandle);
do {