aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorFlorian Kagerer2008-08-16 15:24:52 +0000
committerFlorian Kagerer2008-08-16 15:24:52 +0000
commitcc80af14485304b97f0b329438fcf89c427d8bfb (patch)
treed294210f36fc0e5a8b513e7c760a25a0c7816998 /engines/kyra
parent193f52906c617f7b0305e18f34e632bb256e4c8f (diff)
downloadscummvm-rg350-cc80af14485304b97f0b329438fcf89c427d8bfb.tar.gz
scummvm-rg350-cc80af14485304b97f0b329438fcf89c427d8bfb.tar.bz2
scummvm-rg350-cc80af14485304b97f0b329438fcf89c427d8bfb.zip
KYRA: Fm-Towns Audio: fixed crash
svn-id: r33943
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sound_towns.cpp6
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();