MOHAWK: Fix priority check in LB's lockSound().

This commit is contained in:
Alyssa Milburn 2011-03-29 16:49:42 +02:00
parent bcc0adb8fa
commit 04cb669ff3

View file

@ -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;
}