aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-10-07 06:54:33 +0000
committerTravis Howell2004-10-07 06:54:33 +0000
commitb38b5a5c6489cab54bb79c914c4087d34b98c73b (patch)
treeff0c83fa41b96a04f7dec7e7372c84b560ff37bd /scumm
parent7b16b16e202c23bf4ea2ae28bca99a09ff292304 (diff)
downloadscummvm-rg350-b38b5a5c6489cab54bb79c914c4087d34b98c73b.tar.gz
scummvm-rg350-b38b5a5c6489cab54bb79c914c4087d34b98c73b.tar.bz2
scummvm-rg350-b38b5a5c6489cab54bb79c914c4087d34b98c73b.zip
Pointer correction
svn-id: r15442
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 39ab5c992c..6135ff1cda 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1430,13 +1430,13 @@ void Gdi::drawBMAPObject(const byte *ptr, VirtScreen *vs, int obj, int x, int y,
bmap_ptr = _vm->findResourceData(MKID('BMAP'), ptr);
assert(bmap_ptr);
- byte code = *ptr++;
+ byte code = *bmap_ptr++;
int scrX = _vm->_screenStartStrip * 8;
if (code == 8 || code == 9) {
Common::Rect rScreen(0, 0, vs->w, vs->h);
byte *dst = (byte *)_vm->virtscr[0].backBuf + scrX;
- copyWizImage(dst, ptr, vs->w, vs->h, x - scrX, y, w, h, &rScreen);
+ copyWizImage(dst, bmap_ptr, vs->w, vs->h, x - scrX, y, w, h, &rScreen);
}
Common::Rect rect1(x, y, x + w, y + h);