diff options
-rw-r--r-- | scumm/script_v100he.cpp | 3 | ||||
-rw-r--r-- | 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); |