SCI32: Fix crash starting KQ7 demo

Fixes Trac#10343.
This commit is contained in:
Colin Snover 2017-11-28 16:47:14 -06:00
parent 5bcdc22f55
commit 673d25a9cd

View file

@ -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);
}