Add work around for bug #2686883 - WAXWORKS: Crash in Jack the Ripper Zone.
svn-id: r39557
This commit is contained in:
parent
931c8c27e2
commit
356e803a95
1 changed files with 10 additions and 0 deletions
|
@ -414,6 +414,16 @@ void AGOSEngine_Elvira2::oe2_ifDoorOpen() {
|
||||||
// 148: if door open
|
// 148: if door open
|
||||||
Item *i = getNextItemPtr();
|
Item *i = getNextItemPtr();
|
||||||
uint16 d = getVarOrByte();
|
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);
|
setScriptCondition(getDoorState(i, d) == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue