Fixed music overlaps when running ScummVM with the -x option

svn-id: r5872
This commit is contained in:
Jamieson Christian 2002-12-07 18:03:10 +00:00
parent 6049cc9035
commit b382c79a41
2 changed files with 9 additions and 8 deletions

View file

@ -631,11 +631,14 @@ void Scumm::saveOrLoad(Serializer *s)
int var120Backup;
int var98Backup;
if (_mixer && !s->isSaving()) {
if (_imuseDigital) {
_imuseDigital->stopAll();
} else {
_mixer->stopAll();
if (!s->isSaving()) {
_sound->stopAllSounds();
if (_mixer) {
if (_imuseDigital) {
_imuseDigital->stopAll();
} else {
_mixer->stopAll();
}
}
}