diff options
-rw-r--r-- | scumm/script_v72he.cpp | 4 |
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: |