[Scummvm-git-logs] scummvm master -> 0c084bb04712120af8cdc5374fd99098c43937ac

npjg nathanael.gentrydb8 at gmail.com
Thu Jun 18 16:30:34 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
0c084bb047 DIRECTOR: Fix logical type error


Commit: 0c084bb04712120af8cdc5374fd99098c43937ac
    https://github.com/scummvm/scummvm/commit/0c084bb04712120af8cdc5374fd99098c43937ac
Author: Nathanael Gentry (nathanael.gentrydb8 at gmail.com)
Date: 2020-06-18T12:30:24-04:00

Commit Message:
DIRECTOR: Fix logical type error

Changed paths:
    engines/director/ink.cpp


diff --git a/engines/director/ink.cpp b/engines/director/ink.cpp
index d7313b2c52..4b4115b59b 100644
--- a/engines/director/ink.cpp
+++ b/engines/director/ink.cpp
@@ -142,7 +142,8 @@ void Score::drawReverseSprite(const Graphics::Surface &sprite, Common::Rect &dra
 						}
 					} else {
 						if (*dst == 0 && _vm->getVersion() == 3 &&
-							((BitmapCast*)_channels[spriteId]->_sprite->_cast)->_bitsPerPixel > 1) {
+								_channels[spriteId]->_sprite->_cast->_type == kCastBitmap &&
+								((BitmapCast*)_channels[spriteId]->_sprite->_cast)->_bitsPerPixel > 1) {
 							*dst = _vm->transformColor(*src - 40);
 						} else {
 							*dst ^= _vm->transformColor(srcColor);




More information about the Scummvm-git-logs mailing list