Skip to content

Commit 72e88dc

Browse files
ramyak-sharmasev-
authored andcommitted
DIRECTOR: Fix crash when setting picture of unloaded bitmap cast member
1 parent 564577d commit 72e88dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎engines/director/castmember/bitmap.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ Graphics::MacWidget *BitmapCastMember::createWidget(Common::Rect &bbox, Channel
409409
}
410410

411411
Graphics::Surface *BitmapCastMember::getDitherImg() {
412+
if (!_picture->_surface.getPixels())
413+
return nullptr;
412414
Graphics::Surface *dither = nullptr;
413415

414416
// Convert indexed image to indexed palette

0 commit comments

Comments
 (0)