TITANIC: Fix crash switching from starfield to photo display

This commit is contained in:
Paul Gilbert 2017-05-28 17:14:48 -04:00
parent 6587cacabd
commit 8ad4c59c1c

View File

@ -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");