From 04cb669ff37689c78336ab5cd2e5c9c14b4202f3 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Tue, 29 Mar 2011 16:49:42 +0200 Subject: MOHAWK: Fix priority check in LB's lockSound(). --- engines/mohawk/livingbooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/mohawk/livingbooks.cpp') 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; } -- cgit v1.2.3