diff options
-rw-r--r-- | sword1/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sword1/sound.cpp b/sword1/sound.cpp index 2ba8143aa9..4b64fabbf7 100644 --- a/sword1/sound.cpp +++ b/sword1/sound.cpp @@ -60,8 +60,8 @@ int SwordSound::addToQueue(int32 fxNo) { void SwordSound::engine(void) { // first of all, add any random sfx to the queue... for (uint16 cnt = 0; cnt < TOTAL_FX_PER_ROOM; cnt++) { - uint16 fxNo; - if (fxNo == _roomsFixedFx[SwordLogic::_scriptVars[SCREEN]][cnt]) { + uint16 fxNo = _roomsFixedFx[SwordLogic::_scriptVars[SCREEN]][cnt]; + if (fxNo) { if (_fxList[fxNo].type == FX_RANDOM) { if (_rnd.getRandomNumber(_fxList[fxNo].delay) == 0) addToQueue(fxNo); |