aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support
diff options
context:
space:
mode:
authorPaul Gilbert2017-07-01 17:48:01 -0400
committerPaul Gilbert2017-07-01 17:48:01 -0400
commitfeef98dd225e8c11032306b91c3ccf06ee6e3c5b (patch)
tree683fd60b998ec3aad265f5bad9737ef5a05e4caf /engines/titanic/support
parent72423657e2a4f46d35726a5bb4371c4d1ec4b1bc (diff)
downloadscummvm-rg350-feef98dd225e8c11032306b91c3ccf06ee6e3c5b.tar.gz
scummvm-rg350-feef98dd225e8c11032306b91c3ccf06ee6e3c5b.tar.bz2
scummvm-rg350-feef98dd225e8c11032306b91c3ccf06ee6e3c5b.zip
TITANIC: Fix crash going up service elevator in prologue
Diffstat (limited to 'engines/titanic/support')
-rw-r--r--engines/titanic/support/avi_surface.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp
index 810c0ec5db..5443301e1a 100644
--- a/engines/titanic/support/avi_surface.cpp
+++ b/engines/titanic/support/avi_surface.cpp
@@ -138,12 +138,8 @@ bool AVISurface::startAtFrame(int frameNumber) {
// Default to starting frame of first movie range
frameNumber = _movieRangeInfo.front()->_startFrame;
- if (frameNumber > _movieRangeInfo.front()->_endFrame) {
- if (!isReversed())
- setFrameRate(-DEFAULT_FPS);
- if (frameNumber == (int)_decoder->getFrameCount())
- --frameNumber;
- }
+ if (frameNumber == (int)_decoder->getFrameCount())
+ --frameNumber;
// Start the playback
_decoder->start();