diff options
author | James Brown | 2002-10-20 12:03:56 +0000 |
---|---|---|
committer | James Brown | 2002-10-20 12:03:56 +0000 |
commit | ec158216f7b92ce76712f419f4b7fca47d29ebb6 (patch) | |
tree | 74d9323e921d3c6e1d2d33080491878a728c02dc /scumm/gfx.cpp | |
parent | 0f16641556d9e8f7486da724ce52664df7105563 (diff) | |
download | scummvm-rg350-ec158216f7b92ce76712f419f4b7fca47d29ebb6.tar.gz scummvm-rg350-ec158216f7b92ce76712f419f4b7fca47d29ebb6.tar.bz2 scummvm-rg350-ec158216f7b92ce76712f419f4b7fca47d29ebb6.zip |
Totally random fix for Dig memory corruption. Probably not even remotely correct, someone look at this :)
svn-id: r5195
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r-- | scumm/gfx.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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++; |