aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-03-04 05:34:56 +0000
committerTravis Howell2005-03-04 05:34:56 +0000
commitaf17a870530ad7022013af05833bd68aa65a51bf (patch)
tree69d1b35493ec77eb2a2dd13c23cdd5919b1dec6d
parent64be448cc59898910cc218b26360d6e083c587db (diff)
downloadscummvm-rg350-af17a870530ad7022013af05833bd68aa65a51bf.tar.gz
scummvm-rg350-af17a870530ad7022013af05833bd68aa65a51bf.tar.bz2
scummvm-rg350-af17a870530ad7022013af05833bd68aa65a51bf.zip
Add missing check
svn-id: r16989
-rw-r--r--scumm/script_v100he.cpp3
-rw-r--r--scumm/script_v90he.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script_v100he.cpp b/scumm/script_v100he.cpp
index 742c214b01..df79646412 100644
--- a/scumm/script_v100he.cpp
+++ b/scumm/script_v100he.cpp
@@ -1226,7 +1226,8 @@ void ScummEngine_v100he::o100_wizImageOps() {
_wizParams.resDefImgW = pop();
break;
case 92:
- processWizImage(&_wizParams);
+ if (_wizParams.img.resNum)
+ processWizImage(&_wizParams);
break;
case 128:
pop();
diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp
index 9414b3d6ad..daebf12f56 100644
--- a/scumm/script_v90he.cpp
+++ b/scumm/script_v90he.cpp
@@ -647,7 +647,8 @@ void ScummEngine_v90he::o90_wizImageOps() {
_wizParams.unk_160 = _wizParams.img.y1 = _wizParams.img.x1 = pop();
break;
case 209:
- processWizImage(&_wizParams);
+ if (_wizParams.img.resNum)
+ processWizImage(&_wizParams);
break;
default:
error("o90_wizImageOps: unhandled case %d", subOp);