Skip to content

Commit

Permalink
TITANIC: Fix crash switching from starfield to photo display
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 28, 2017
1 parent 6587cac commit 8ad4c59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/titanic/star_control/star_view.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit 8ad4c59

Please sign in to comment.