diff options
author | Alyssa Milburn | 2011-03-29 20:13:06 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-03-29 20:22:25 +0200 |
commit | ff9f08aa411c68e027f594eca16404d920f7c820 (patch) | |
tree | c6fe4a4259c5cfbfdada4a8b74c3a5347b8755a9 /engines/mohawk/livingbooks.cpp | |
parent | 5bc5e95e12f414a294909bce03be43e9eac40d0b (diff) | |
download | scummvm-rg350-ff9f08aa411c68e027f594eca16404d920f7c820.tar.gz scummvm-rg350-ff9f08aa411c68e027f594eca16404d920f7c820.tar.bz2 scummvm-rg350-ff9f08aa411c68e027f594eca16404d920f7c820.zip |
MOHAWK: Only stop the last-played sound in LB's playSound.
This might need a version check, but seems to be fine without.
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 95d55a6e90..3d1c32fc90 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -571,7 +571,8 @@ bool MohawkEngine_LivingBooks::playSound(LBItem *source, uint16 resourceId) { return false; } - _sound->stopSound(); + if (_lastSoundId) + _sound->stopSound(_lastSoundId); _sound->playSound(resourceId); _lastSoundId = resourceId; |