MOHAWK: Fix priority check in LB's lockSound().
This commit is contained in:
parent
bcc0adb8fa
commit
04cb669ff3
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ void MohawkEngine_LivingBooks::lockSound(LBItem *owner, bool lock) {
|
||||||
|
|
||||||
_soundLockOwner = owner->getId();
|
_soundLockOwner = owner->getId();
|
||||||
_maxSoundPriority = owner->getSoundPriority();
|
_maxSoundPriority = owner->getSoundPriority();
|
||||||
if (_lastSoundId && _lastSoundPriority < _maxSoundPriority) {
|
if (_lastSoundId && _maxSoundPriority <= _lastSoundPriority) {
|
||||||
_sound->stopSound(_lastSoundId);
|
_sound->stopSound(_lastSoundId);
|
||||||
_lastSoundId = 0;
|
_lastSoundId = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue