[Scummvm-cvs-logs] SF.net SVN: scummvm:[39557] scummvm/trunk/engines/agos/script_e2.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Fri Mar 20 10:59:40 CET 2009
Revision: 39557
http://scummvm.svn.sourceforge.net/scummvm/?rev=39557&view=rev
Author: Kirben
Date: 2009-03-20 09:59:40 +0000 (Fri, 20 Mar 2009)
Log Message:
-----------
Add work around for bug #2686883 - WAXWORKS: Crash in Jack the Ripper Zone.
Modified Paths:
--------------
scummvm/trunk/engines/agos/script_e2.cpp
Modified: scummvm/trunk/engines/agos/script_e2.cpp
===================================================================
--- scummvm/trunk/engines/agos/script_e2.cpp 2009-03-20 00:20:29 UTC (rev 39556)
+++ scummvm/trunk/engines/agos/script_e2.cpp 2009-03-20 09:59:40 UTC (rev 39557)
@@ -414,6 +414,16 @@
// 148: if door open
Item *i = getNextItemPtr();
uint16 d = getVarOrByte();
+
+ if (getGameType() == GType_WW) {
+ // WORKAROUND bug #2686883: A NULL item can occur when
+ // walking through Jack the Ripper scene
+ if (i == NULL) {
+ setScriptCondition(false);
+ return;
+ }
+ }
+
setScriptCondition(getDoorState(i, d) == 1);
}
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