diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/video32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/video32.cpp b/engines/sci/graphics/video32.cpp index 0efb2570a0..e6e594b211 100644 --- a/engines/sci/graphics/video32.cpp +++ b/engines/sci/graphics/video32.cpp @@ -671,7 +671,7 @@ VMDPlayer::EventFlags VMDPlayer::kernelPlayUntilEvent(const EventFlags flags, co const int32 maxFrameNo = _decoder->getFrameCount() - 1; - if (flags & kEventFlagToFrame) { + if ((flags & kEventFlagToFrame) && lastFrameNo) { _yieldFrame = MIN<int32>(lastFrameNo, maxFrameNo); } else { _yieldFrame = maxFrameNo; |