SCI: Check for the existence of script 180 before accessing it.

Fixes the Longbow demo

svn-id: r52344
This commit is contained in:
Filippos Karapetis 2010-08-24 14:58:29 +00:00
parent ff9b897d8c
commit cd61674010

View File

@ -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 "