From 11633a3d177b2bef3836d8da1dc7ace17ddbf38b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 5 Sep 2016 00:33:40 +0200 Subject: FULLPIPE: Fix crash on startup when pressing ESC --- engines/fullpipe/scene.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/fullpipe/scene.cpp') diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp index d8e3090559..71990f7916 100644 --- a/engines/fullpipe/scene.cpp +++ b/engines/fullpipe/scene.cpp @@ -531,6 +531,10 @@ void Scene::updateScrolling() { _messageQueueId = 0; } + // Might happen very early in the game + if (!_picObjList.size()) + return; + if (_x || _y) { int offsetX = 0; int offsetY = 0; -- cgit v1.2.3