aboutsummaryrefslogtreecommitdiff
path: root/scumm/imuse_digi
diff options
context:
space:
mode:
authorEugene Sandulenko2005-10-12 21:11:11 +0000
committerEugene Sandulenko2005-10-12 21:11:11 +0000
commit2a5025d69afd622a2a5292f6c2444bf7214843a7 (patch)
treeeec8855eaacf4536d3051148941213bc46d02f57 /scumm/imuse_digi
parent34805489524bb0e6c9ba7568d29ecd05ed40bbd5 (diff)
downloadscummvm-rg350-2a5025d69afd622a2a5292f6c2444bf7214843a7.tar.gz
scummvm-rg350-2a5025d69afd622a2a5292f6c2444bf7214843a7.tar.bz2
scummvm-rg350-2a5025d69afd622a2a5292f6c2444bf7214843a7.zip
Fix bug #1316605 "DIG: some saved games crash scummvm". Actually it's
aquadran's fix. svn-id: r19054
Diffstat (limited to 'scumm/imuse_digi')
-rw-r--r--scumm/imuse_digi/dimuse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/imuse_digi/dimuse.cpp b/scumm/imuse_digi/dimuse.cpp
index f6f2d71070..cb8fb77606 100644
--- a/scumm/imuse_digi/dimuse.cpp
+++ b/scumm/imuse_digi/dimuse.cpp
@@ -139,7 +139,7 @@ void IMuseDigital::saveOrLoad(Serializer *ser) {
if (!track->used)
continue;
track->readyToRemove = false;
- if ((track->toBeRemoved) || (track->souStream)) {
+ if ((track->toBeRemoved) || (track->souStream) || (track->curRegion == -1)) {
track->stream2 = NULL;
track->stream = NULL;
track->used = false;