diff options
author | Florian Kagerer | 2008-08-16 15:24:52 +0000 |
---|---|---|
committer | Florian Kagerer | 2008-08-16 15:24:52 +0000 |
commit | cc80af14485304b97f0b329438fcf89c427d8bfb (patch) | |
tree | d294210f36fc0e5a8b513e7c760a25a0c7816998 | |
parent | 193f52906c617f7b0305e18f34e632bb256e4c8f (diff) | |
download | scummvm-rg350-cc80af14485304b97f0b329438fcf89c427d8bfb.tar.gz scummvm-rg350-cc80af14485304b97f0b329438fcf89c427d8bfb.tar.bz2 scummvm-rg350-cc80af14485304b97f0b329438fcf89c427d8bfb.zip |
KYRA: Fm-Towns Audio: fixed crash
svn-id: r33943
-rw-r--r-- | engines/kyra/sound_towns.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp index 9ae012b9c4..df7dab714a 100644 --- a/engines/kyra/sound_towns.cpp +++ b/engines/kyra/sound_towns.cpp @@ -3156,8 +3156,10 @@ void TownsPC98_OpnDriver::fadeOut() { if (_updateSSGFlag & _ssgChannels[j]->_idFlag) _ssgChannels[j]->fadeStep(); } - if (_updatePCMFlag & _pcmChannel->_idFlag) - _pcmChannel->fadeStep(); + if (_hasPCM) { + if (_updatePCMFlag & _pcmChannel->_idFlag) + _pcmChannel->fadeStep(); + } unlock(); |