aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorStrangerke2014-03-16 12:00:39 +0100
committerStrangerke2014-03-16 12:00:39 +0100
commitb5c086270d7ab1cf02d3c404d5ae9818a172fad9 (patch)
treecb35f28d55a5f986f0407dad7387441b3a9219dc /engines/tsage
parented90a8861bde2505f682b5b227adf16563f23134 (diff)
downloadscummvm-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.cpp2
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,