aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/rlf_animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision/rlf_animation.cpp')
-rw-r--r--engines/zvision/rlf_animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/rlf_animation.cpp b/engines/zvision/rlf_animation.cpp
index 8981a6983c..5f1d41daae 100644
--- a/engines/zvision/rlf_animation.cpp
+++ b/engines/zvision/rlf_animation.cpp
@@ -164,7 +164,7 @@ void RlfAnimation::seekToFrame(int frameNumber) {
int closestFrame = _currentFrame;
int distance = (int)frameNumber - _currentFrame;
- for (int i = 0; i < _completeFrames.size(); ++i) {
+ for (uint i = 0; i < _completeFrames.size(); ++i) {
int newDistance = (int)frameNumber - (int)(_completeFrames[i]);
if (newDistance > 0 && (closestFrame == -1 || newDistance < distance)) {
closestFrame = _completeFrames[i];