aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
authorwhiterandrek2018-06-12 11:17:17 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commita38a02d71ce99901d06905d6d632c45f1c5af80a (patch)
treee09e153ac10bf57c913a5a89e877bd9bb9ef615d /engines/pink
parent02524d81c8727ebcb61100df6b88eb25a77bed41 (diff)
downloadscummvm-rg350-a38a02d71ce99901d06905d6d632c45f1c5af80a.tar.gz
scummvm-rg350-a38a02d71ce99901d06905d6d632c45f1c5af80a.tar.bz2
scummvm-rg350-a38a02d71ce99901d06905d6d632c45f1c5af80a.zip
PINK: fix CEL rewinding
Diffstat (limited to 'engines/pink')
-rw-r--r--engines/pink/cel_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pink/cel_decoder.cpp b/engines/pink/cel_decoder.cpp
index 960403733d..ef46c53cbc 100644
--- a/engines/pink/cel_decoder.cpp
+++ b/engines/pink/cel_decoder.cpp
@@ -209,7 +209,7 @@ bool CelDecoder::CelVideoTrack::rewind() {
// 2) I changed behaviour of endOfTrack
_nextFrameStartTime = 0;
- if (getCurFrame() >= getFrameCount() - 1 && _fileStream->pos() < _fileStream->size())
+ if (_curFrame >= (int) _frameCount - 1 && _fileStream->pos() < _fileStream->size())
_atRingFrame = true;
else
_fileStream->seek(_offsetFrame1);