diff options
author | James Brown | 2002-05-01 19:03:54 +0000 |
---|---|---|
committer | James Brown | 2002-05-01 19:03:54 +0000 |
commit | a75a09185f0aac3ea8bbc517c66aaa4ff6b7e654 (patch) | |
tree | 3db74b151706ffad352fb064ef3b35ca6454680d /costume.cpp | |
parent | 7fa28ffec2e842cbc7a4404d75509288afa9995e (diff) | |
download | scummvm-rg350-a75a09185f0aac3ea8bbc517c66aaa4ff6b7e654.tar.gz scummvm-rg350-a75a09185f0aac3ea8bbc517c66aaa4ff6b7e654.tar.bz2 scummvm-rg350-a75a09185f0aac3ea8bbc517c66aaa4ff6b7e654.zip |
Fix actor masking crash.
svn-id: r4161
Diffstat (limited to 'costume.cpp')
-rw-r--r-- | costume.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/costume.cpp b/costume.cpp index 84d974776d..7584e2d8da 100644 --- a/costume.cpp +++ b/costume.cpp @@ -288,7 +288,7 @@ byte CostumeRenderer::mainRoutine(Actor * a, int slot, int frame) masking = _vm->isMaskActiveAt(_left, _top, _right, _bottom,_vm->getResourceAddress(rtBuffer,9) + _vm->gdi._imgBufOffs[_zbuf] + _vm->_screenStartStrip); - if (_zbuf || charsetmask) { + if (masking || charsetmask) { _mask_ptr =_vm->getResourceAddress(rtBuffer,9) + _ypos * 40 + _vm->_screenStartStrip; _imgbufoffs = _vm->gdi._imgBufOffs[_zbuf]; if (!charsetmask && _zbuf != 0) |