aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/sound_nebular.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/nebular/sound_nebular.cpp')
-rw-r--r--engines/mads/nebular/sound_nebular.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/nebular/sound_nebular.cpp b/engines/mads/nebular/sound_nebular.cpp
index b20b0d2b96..6bc697459a 100644
--- a/engines/mads/nebular/sound_nebular.cpp
+++ b/engines/mads/nebular/sound_nebular.cpp
@@ -404,12 +404,12 @@ void ASound::checkChannels() {
void ASound::pollActiveChannel() {
AdlibChannel *chan = _activeChannelPtr;
- bool updateFlag = true;
if (chan->_activeCount) {
if (chan->_field8 > 0 && --chan->_field8 == 0)
updateOctave();
+ bool updateFlag = true;
if (--_activeChannelPtr->_activeCount <= 0) {
for (;;) {
byte *pSrc = chan->_pSrc;