mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
TITANIC: Fix crash switching from starfield to photo display
This commit is contained in:
parent
6587cacabd
commit
8ad4c59c1c
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user