aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/livingbooks.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2011-03-29 16:49:42 +0200
committerAlyssa Milburn2011-03-29 16:49:42 +0200
commit04cb669ff37689c78336ab5cd2e5c9c14b4202f3 (patch)
tree416d40272145782212ecd6662fd54fc6a082d2ff /engines/mohawk/livingbooks.cpp
parentbcc0adb8fa213210147c3b36e5283fe8f752d55c (diff)
downloadscummvm-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/mohawk/livingbooks.cpp')
-rw-r--r--engines/mohawk/livingbooks.cpp2
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;
}