diff options
-rw-r--r-- | engines/wintermute/video/video_subtitler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/wintermute/video/video_subtitler.cpp b/engines/wintermute/video/video_subtitler.cpp index f1becb00b3..0ade366fb5 100644 --- a/engines/wintermute/video/video_subtitler.cpp +++ b/engines/wintermute/video/video_subtitler.cpp @@ -185,6 +185,12 @@ bool VideoSubtitler::display() { } bool VideoSubtitler::update(long frame) { + + if (_subtitles.size() == 0) { + // Edge case: we have loaded subtitles early on... from a blank file. + return false; + } + if (frame != _lastSample) { /* * If the frame count hasn't advanced the previous state still matches |