aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-10-08 00:37:29 +0000
committerTravis Howell2004-10-08 00:37:29 +0000
commit9fdd43e25ee07123d8e2a245ababb14eb50c134e (patch)
tree25e80ba22c5315e583f3516e30079f13785023e8 /scumm
parentbf905b2eeb256eeaa8ac216abe5ca0bcc4ee422e (diff)
downloadscummvm-rg350-9fdd43e25ee07123d8e2a245ababb14eb50c134e.tar.gz
scummvm-rg350-9fdd43e25ee07123d8e2a245ababb14eb50c134e.tar.bz2
scummvm-rg350-9fdd43e25ee07123d8e2a245ababb14eb50c134e.zip
Return 0 is array doesn't exist, possible script bug in HE game.
svn-id: r15459
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v72he.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index e9d3aab82c..64b10096c7 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -898,6 +898,10 @@ void ScummEngine_v72he::o72_getArrayDimSize() {
int subOp = fetchScriptByte();
int32 val1, val2;
ArrayHeader *ah = (ArrayHeader *)getResourceAddress(rtString, readVar(fetchScriptWord()));
+ if (!ah) {
+ push(0);
+ return;
+ }
switch (subOp) {
case 1: