aboutsummaryrefslogtreecommitdiff
path: root/engines/director/director.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director/director.cpp')
-rw-r--r--engines/director/director.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp
index 332b8b5759..14a63db8b6 100644
--- a/engines/director/director.cpp
+++ b/engines/director/director.cpp
@@ -312,6 +312,9 @@ void DirectorEngine::enqueueAllMovies() {
MovieReference DirectorEngine::getNextMovieFromQueue() {
MovieReference res;
+ if (_movieQueue.empty())
+ return res;
+
res.movie = _movieQueue.front();
debug(0, "=======================================");