[Scummvm-cvs-logs] SF.net SVN: scummvm:[52344] scummvm/trunk/engines/sci/sci.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Tue Aug 24 16:58:30 CEST 2010
Revision: 52344
http://scummvm.svn.sourceforge.net/scummvm/?rev=52344&view=rev
Author: thebluegr
Date: 2010-08-24 14:58:29 +0000 (Tue, 24 Aug 2010)
Log Message:
-----------
SCI: Check for the existence of script 180 before accessing it.
Fixes the Longbow demo
Modified Paths:
--------------
scummvm/trunk/engines/sci/sci.cpp
Modified: scummvm/trunk/engines/sci/sci.cpp
===================================================================
--- scummvm/trunk/engines/sci/sci.cpp 2010-08-24 14:54:16 UTC (rev 52343)
+++ scummvm/trunk/engines/sci/sci.cpp 2010-08-24 14:58:29 UTC (rev 52344)
@@ -314,7 +314,7 @@
// 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 "
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list