From 1f88852de548a02e42c9fc8a546fc377117f87ae Mon Sep 17 00:00:00 2001 From: lukaslw Date: Thu, 24 Jul 2014 18:59:26 +0200 Subject: PRINCE: blackPalette(), setPalette() update - allow game quit --- engines/prince/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/prince/object.cpp') diff --git a/engines/prince/object.cpp b/engines/prince/object.cpp index e4dece4426..c8cdc75083 100644 --- a/engines/prince/object.cpp +++ b/engines/prince/object.cpp @@ -43,7 +43,7 @@ Object::~Object() { delete _surface; _surface = nullptr; } - if (_zoomSurface) { + if (_zoomSurface != nullptr) { _zoomSurface->free(); delete _zoomSurface; _zoomSurface = nullptr; -- cgit v1.2.3