aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-04-17 07:40:40 +0000
committerTravis Howell2005-04-17 07:40:40 +0000
commit6feb1a75f69438df2d2ccd8909f34c53b09a342a (patch)
treeafdad4bd85e72f94f229a6f0aaca016ffdaf95b8
parent95c23c4cc8801fbbcbce94c5a09194eb764c81ae (diff)
downloadscummvm-rg350-6feb1a75f69438df2d2ccd8909f34c53b09a342a.tar.gz
scummvm-rg350-6feb1a75f69438df2d2ccd8909f34c53b09a342a.tar.bz2
scummvm-rg350-6feb1a75f69438df2d2ccd8909f34c53b09a342a.zip
Revert + 1 to width/height, caused invalid write.
svn-id: r17644
-rw-r--r--scumm/wiz_he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp
index 6074bbcb77..77f0f293df 100644
--- a/scumm/wiz_he.cpp
+++ b/scumm/wiz_he.cpp
@@ -1503,7 +1503,7 @@ void ScummEngine_v90he::fillWizRect(const WizParameters *params) {
uint32 iw = READ_LE_UINT32(wizh + 0x4);
uint32 ih = READ_LE_UINT32(wizh + 0x8);
assert(ic == 0 || ic == 2 || ic == 3);
- Common::Rect r1(iw + 1, ih + 1);
+ Common::Rect r1(iw, ih);
if (params->processFlags & kWPFClipBox) {
if (!r1.intersects(params->box)) {
return;