diff options
author | Strangerke | 2014-03-16 12:00:39 +0100 |
---|---|---|
committer | Strangerke | 2014-03-16 12:00:39 +0100 |
commit | b5c086270d7ab1cf02d3c404d5ae9818a172fad9 (patch) | |
tree | cb35f28d55a5f986f0407dad7387441b3a9219dc /engines/tsage | |
parent | ed90a8861bde2505f682b5b227adf16563f23134 (diff) | |
download | scummvm-rg350-b5c086270d7ab1cf02d3c404d5ae9818a172fad9.tar.gz scummvm-rg350-b5c086270d7ab1cf02d3c404d5ae9818a172fad9.tar.bz2 scummvm-rg350-b5c086270d7ab1cf02d3c404d5ae9818a172fad9.zip |
TSAGE: Prevent possible null dereferenced in sound player
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/sound.cpp b/engines/tsage/sound.cpp index b6434b3523..c5b54746e8 100644 --- a/engines/tsage/sound.cpp +++ b/engines/tsage/sound.cpp @@ -1118,7 +1118,7 @@ void SoundManager::sfRethinkVoiceTypes() { vse._fieldA = 1; vse._sound2 = NULL; - if (total) { + if ((total) && vse._sound) { driver->proc24(vse._channelNum, idx, vse._sound, 123, 0); driver->proc24(vse._channelNum, idx, vse._sound, 1, vse._sound->_chModulation[vse._channelNum]); driver->proc24(vse._channelNum, idx, vse._sound, 7, |