aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-11-28 16:47:14 -0600
committerColin Snover2017-11-28 16:47:37 -0600
commit673d25a9cd65b816b7bec23da85e8acff22dc28e (patch)
tree854f786fb16890ff4689c60ba81c3169b06486f1
parent5bcdc22f55fad6102c827c42640f13f766de078a (diff)
downloadscummvm-rg350-673d25a9cd65b816b7bec23da85e8acff22dc28e.tar.gz
scummvm-rg350-673d25a9cd65b816b7bec23da85e8acff22dc28e.tar.bz2
scummvm-rg350-673d25a9cd65b816b7bec23da85e8acff22dc28e.zip
SCI32: Fix crash starting KQ7 demo
Fixes Trac#10343.
-rw-r--r--engines/sci/engine/features.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/features.cpp b/engines/sci/engine/features.cpp
index 1297ba2abc..7172a6fbe3 100644
--- a/engines/sci/engine/features.cpp
+++ b/engines/sci/engine/features.cpp
@@ -704,6 +704,10 @@ bool GameFeatures::generalMidiOnly() {
case GID_MOTHERGOOSEHIRES:
return true;
case GID_KQ7: {
+ if (g_sci->isDemo()) {
+ return false;
+ }
+
SoundResource sound(13, g_sci->getResMan(), detectDoSoundType());
return (sound.getTrackByType(/* AdLib */ 0) == nullptr);
}