diff options
-rw-r--r-- | scumm/imuse_digi/dimuse.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scumm/imuse_digi/dimuse.cpp b/scumm/imuse_digi/dimuse.cpp index af8259b23a..3f8265be83 100644 --- a/scumm/imuse_digi/dimuse.cpp +++ b/scumm/imuse_digi/dimuse.cpp @@ -144,7 +144,14 @@ void IMuseDigital::saveOrLoad(Serializer *ser) { track->soundHandle = _sound->openSound(track->soundId, track->soundName, track->soundType, track->volGroupId, -1); - assert(track->soundHandle); + if (!track->soundHandle) { + warning("IMuseDigital::saveOrLoad: Can't open sound so will not be resumed, propably on diffrent CD"); + track->stream2 = NULL; + track->stream = NULL; + track->used = false; + continue; + } + if (track->compressed) { track->regionOffset = 0; } |