diff options
author | Strangerke | 2014-05-19 21:43:18 +0200 |
---|---|---|
committer | Strangerke | 2014-05-19 21:43:18 +0200 |
commit | 9544db6510a9290559e0e1ece86aad7f97989341 (patch) | |
tree | 16e58e526351e6f3d3e096f65db748149d0c4160 /engines/mads | |
parent | 20c26931269871f599897d01cb93502bd58b1412 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/mads/nebular/sound_nebular.cpp | 2 |
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; |