mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 02:44:56 +00:00
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
@ -414,6 +414,16 @@ void AGOSEngine_Elvira2::oe2_ifDoorOpen() {
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user