MOHAWK: Add a sanity check to waitUntilMovieEnds()

svn-id: r55309
This commit is contained in:
Matthew Hoops 2011-01-18 19:22:48 +00:00
parent 58c9e219b6
commit da1669c666

View File

@ -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) {