aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-05 00:33:40 +0200
committerEugene Sandulenko2016-09-05 00:34:07 +0200
commit11633a3d177b2bef3836d8da1dc7ace17ddbf38b (patch)
treeef1bbb9fe1ad468238b4f204ee6c21db7ea4522f
parented92175bf7d8ffaed1087b3a0faf038904201106 (diff)
downloadscummvm-rg350-11633a3d177b2bef3836d8da1dc7ace17ddbf38b.tar.gz
scummvm-rg350-11633a3d177b2bef3836d8da1dc7ace17ddbf38b.tar.bz2
scummvm-rg350-11633a3d177b2bef3836d8da1dc7ace17ddbf38b.zip
FULLPIPE: Fix crash on startup when pressing ESC
-rw-r--r--engines/fullpipe/scene.cpp4
1 files changed, 4 insertions, 0 deletions
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;