fix/workaround for bug: 1120625

svn-id: r16779
This commit is contained in:
Paweł Kołodziejski 2005-02-12 15:00:16 +00:00
parent 4a0887f34d
commit ddd97c96da

View File

@ -144,7 +144,14 @@ void IMuseDigital::saveOrLoad(Serializer *ser) {
track->soundHandle = _sound->openSound(track->soundId, track->soundHandle = _sound->openSound(track->soundId,
track->soundName, track->soundType, track->soundName, track->soundType,
track->volGroupId, -1); 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) { if (track->compressed) {
track->regionOffset = 0; track->regionOffset = 0;
} }