From 6610ca1b82a1e335eecf139aaa4ba062574f48b7 Mon Sep 17 00:00:00 2001 From: richiesams Date: Sat, 24 Aug 2013 00:14:25 -0500 Subject: ZVISION: Fix error: decrementing instead of incrementing --- engines/zvision/rlf_animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/zvision') diff --git a/engines/zvision/rlf_animation.cpp b/engines/zvision/rlf_animation.cpp index 2b37ff147e..52ca96f0e1 100644 --- a/engines/zvision/rlf_animation.cpp +++ b/engines/zvision/rlf_animation.cpp @@ -195,7 +195,7 @@ const uint16 *RlfAnimation::getNextFrame() { applyFrameToCurrent(_currentFrame + 1); } - _currentFrame -= 1; + _currentFrame++; return _currentFrameBuffer; } @@ -204,7 +204,7 @@ const uint16 *RlfAnimation::getPreviousFrame() { assert(_currentFrame - 1 >= 0); applyFrameToCurrent(_currentFrame - 1); - _currentFrame =- 1; + _currentFrame--; return _currentFrameBuffer; } -- cgit v1.2.3