diff options
author | Alyssa Milburn | 2011-03-29 16:49:42 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-03-29 16:49:42 +0200 |
commit | 04cb669ff37689c78336ab5cd2e5c9c14b4202f3 (patch) | |
tree | 416d40272145782212ecd6662fd54fc6a082d2ff /engines | |
parent | bcc0adb8fa213210147c3b36e5283fe8f752d55c (diff) | |
download | scummvm-rg350-04cb669ff37689c78336ab5cd2e5c9c14b4202f3.tar.gz scummvm-rg350-04cb669ff37689c78336ab5cd2e5c9c14b4202f3.tar.bz2 scummvm-rg350-04cb669ff37689c78336ab5cd2e5c9c14b4202f3.zip |
MOHAWK: Fix priority check in LB's lockSound().
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 87fa55eaf1..292e8a392f 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -595,7 +595,7 @@ void MohawkEngine_LivingBooks::lockSound(LBItem *owner, bool lock) { _soundLockOwner = owner->getId(); _maxSoundPriority = owner->getSoundPriority(); - if (_lastSoundId && _lastSoundPriority < _maxSoundPriority) { + if (_lastSoundId && _maxSoundPriority <= _lastSoundPriority) { _sound->stopSound(_lastSoundId); _lastSoundId = 0; } |