aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/animation/rlf_animation.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision/animation/rlf_animation.h')
-rw-r--r--engines/zvision/animation/rlf_animation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/animation/rlf_animation.h b/engines/zvision/animation/rlf_animation.h
index dfb2a60109..00c2e9b3d5 100644
--- a/engines/zvision/animation/rlf_animation.h
+++ b/engines/zvision/animation/rlf_animation.h
@@ -64,7 +64,7 @@ private:
Frame *_frames;
Common::Array<uint> _completeFrames;
- int _currentFrame;
+ int _nextFrame;
Graphics::Surface _currentFrameBuffer;
uint32 _frameBufferByteSize;
@@ -113,7 +113,7 @@ public:
* @return Is the currentFrame is the last frame in the animation?
*/
bool endOfAnimation() {
- return _currentFrame == (int)_frameCount;
+ return _nextFrame == (int)_frameCount;
}
private: