aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-08-24 14:58:29 +0000
committerFilippos Karapetis2010-08-24 14:58:29 +0000
commitcd61674010a1e539d0ff5eac69a0bd44c43dff09 (patch)
tree1a703c61bcfb73fd599f7778894cab9fb9996fee /engines
parentff9b897d8c6cd2bfcd0ca260977004470d92e026 (diff)
downloadscummvm-rg350-cd61674010a1e539d0ff5eac69a0bd44c43dff09.tar.gz
scummvm-rg350-cd61674010a1e539d0ff5eac69a0bd44c43dff09.tar.bz2
scummvm-rg350-cd61674010a1e539d0ff5eac69a0bd44c43dff09.zip
SCI: Check for the existence of script 180 before accessing it.
Fixes the Longbow demo svn-id: r52344
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sci.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 9ed6a6932b..1f4f3bd383 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -314,7 +314,7 @@ Common::Error SciEngine::run() {
// Refer to bug #3036609.
Resource *buggyScript = _resMan->findResource(ResourceId(kResourceTypeScript, 180), 0);
- if (buggyScript->size == 12354 || buggyScript->size == 12362) {
+ if (buggyScript && (buggyScript->size == 12354 || buggyScript->size == 12362)) {
showScummVMDialog("A known buggy game script has been detected, which could "
"prevent you from progressing later on in the game, during "
"the sequence with the Green Man's riddles. Please, apply "