diff options
author | Filippos Karapetis | 2010-08-24 14:58:29 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-08-24 14:58:29 +0000 |
commit | cd61674010a1e539d0ff5eac69a0bd44c43dff09 (patch) | |
tree | 1a703c61bcfb73fd599f7778894cab9fb9996fee /engines | |
parent | ff9b897d8c6cd2bfcd0ca260977004470d92e026 (diff) | |
download | scummvm-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.cpp | 2 |
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 " |