From af17a870530ad7022013af05833bd68aa65a51bf Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 4 Mar 2005 05:34:56 +0000 Subject: Add missing check svn-id: r16989 --- scumm/script_v100he.cpp | 3 ++- scumm/script_v90he.cpp | 3 ++- 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); -- cgit v1.2.3