aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/sound_nebular.cpp
diff options
context:
space:
mode:
authorStrangerke2014-05-19 21:43:18 +0200
committerStrangerke2014-05-19 21:43:18 +0200
commit9544db6510a9290559e0e1ece86aad7f97989341 (patch)
tree16e58e526351e6f3d3e096f65db748149d0c4160 /engines/mads/nebular/sound_nebular.cpp
parent20c26931269871f599897d01cb93502bd58b1412 (diff)
downloadscummvm-rg350-9544db6510a9290559e0e1ece86aad7f97989341.tar.gz
scummvm-rg350-9544db6510a9290559e0e1ece86aad7f97989341.tar.bz2
scummvm-rg350-9544db6510a9290559e0e1ece86aad7f97989341.zip
MADS: Reduce the scope of a variable in ASound
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;