From ec158216f7b92ce76712f419f4b7fca47d29ebb6 Mon Sep 17 00:00:00 2001 From: James Brown Date: Sun, 20 Oct 2002 12:03:56 +0000 Subject: Totally random fix for Dig memory corruption. Probably not even remotely correct, someone look at this :) svn-id: r5195 --- scumm/gfx.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scumm') diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index b7c610330d..7fe9c68ae5 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1224,7 +1224,10 @@ void Gdi::decompressMaskImg() byte *dst = _mask_ptr_dest; int height = _numLinesToProcess; byte b, c; - + + height--; // FIXME: This seems to fix The Dig nexus wrapping corrupting memory.. + // and doesn't break any other games.. but is it correct? If so, + // do we need to mirror this change anywhere else? while (1) { b = *src++; -- cgit v1.2.3