From 160a28e9126dc1f7a06198f67a0dbcadb20d7047 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 28 Dec 2004 11:19:36 +0000 Subject: Fixing hasActiveChannelOfType svn-id: r16354 --- sound/mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 74165d3a0a..2f09add6a8 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -397,7 +397,7 @@ bool SoundMixer::isSoundIDActive(int id) { bool SoundMixer::hasActiveChannelOfType(SoundType type) { Common::StackLock lock(_mutex); for (int i = 0; i != NUM_CHANNELS; i++) - if (_channels[i] && !_channels[i]->_type == type) + if (_channels[i] && _channels[i]->_type == type) return true; return false; } -- cgit v1.2.3