diff options
-rw-r--r-- | scumm/costume.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp index e36240dc2d..2ad73cafac 100644 --- a/scumm/costume.cpp +++ b/scumm/costume.cpp @@ -496,7 +496,7 @@ void CostumeRenderer::proc3_ami() { len = *src++; do { if (_scaleY == 255 || cost_scaleTable[_scaleIndexY] < _scaleY) { - masked = (y < _outheight) && v1.mask_ptr && ((mask[0] | mask[v1.imgbufoffs]) & maskbit); + masked = (y >= _outheight) || v1.mask_ptr && ((mask[0] | mask[v1.imgbufoffs]) & maskbit); if (color && v1.x >= 0 && v1.x < _vm->_screenWidth && !masked) { *dst = _palette[color]; |