From 9544db6510a9290559e0e1ece86aad7f97989341 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 19 May 2014 21:43:18 +0200 Subject: MADS: Reduce the scope of a variable in ASound --- engines/mads/nebular/sound_nebular.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/mads') 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; -- cgit v1.2.3