From 8ad4c59c1ca3d595ca99b850a9c3db7efdc09e91 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 28 May 2017 17:14:48 -0400 Subject: [PATCH] TITANIC: Fix crash switching from starfield to photo display --- engines/titanic/star_control/star_view.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/titanic/star_control/star_view.cpp b/engines/titanic/star_control/star_view.cpp index 689020342eb..c98fb42f429 100644 --- a/engines/titanic/star_control/star_view.cpp +++ b/engines/titanic/star_control/star_view.cpp @@ -87,7 +87,8 @@ void CStarView::draw(CScreenManager *screenManager) { Point destPos(20, 10); if (_showingPhoto) { - screenManager->blitFrom(SURFACE_PRIMARY, _photoSurface, &destPos); + if (_photoSurface) + screenManager->blitFrom(SURFACE_PRIMARY, _photoSurface, &destPos); if (!_homePhotoMask && _owner) { _homePhotoMask = _owner->getHiddenObject("HomePhotoMask");