diff options
-rw-r--r-- | engines/director/director.cpp | 3 |
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, "======================================="); |