aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/video.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mohawk/video.cpp b/engines/mohawk/video.cpp
index c82adade9d..4e1a544730 100644
--- a/engines/mohawk/video.cpp
+++ b/engines/mohawk/video.cpp
@@ -106,6 +106,9 @@ void VideoManager::playMovieCentered(const Common::String &filename, bool clearS
}
void VideoManager::waitUntilMovieEnds(VideoHandle videoHandle) {
+ if (videoHandle == NULL_VID_HANDLE)
+ return;
+
bool continuePlaying = true;
while (!_videoStreams[videoHandle].endOfVideo() && !_vm->shouldQuit() && continuePlaying) {