diff options
author | richiesams | 2013-08-24 00:32:33 -0500 |
---|---|---|
committer | richiesams | 2013-08-24 00:32:33 -0500 |
commit | af762dc41799bd08138a1f8fbcb7b441c4a03480 (patch) | |
tree | 890fa2b32fffb2ef143b20addee878e42b84c74c /engines/zvision | |
parent | 7d48a3e4b129784c7870472cbbaf6fa9488fffe6 (diff) | |
download | scummvm-rg350-af762dc41799bd08138a1f8fbcb7b441c4a03480.tar.gz scummvm-rg350-af762dc41799bd08138a1f8fbcb7b441c4a03480.tar.bz2 scummvm-rg350-af762dc41799bd08138a1f8fbcb7b441c4a03480.zip |
ZVISION: Fix signed/unsigned mismatch
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/rlf_animation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/zvision/rlf_animation.cpp b/engines/zvision/rlf_animation.cpp index 905a540924..c95a8640c1 100644 --- a/engines/zvision/rlf_animation.cpp +++ b/engines/zvision/rlf_animation.cpp @@ -159,11 +159,11 @@ const uint16 *RlfAnimation::getFrameData(uint frameNumber) { // Since this method is so expensive, first check to see if we can use // getNextFrame() or getPreviousFrame() since they are cheap. - if (frameNumber == _currentFrame) { + if ((int)frameNumber == _currentFrame) { return _currentFrameBuffer; - } else if (_currentFrame + 1 == frameNumber) { + } else if (_currentFrame + 1 == (int)frameNumber) { return getNextFrame(); - } else if (_currentFrame - 1 == frameNumber) { + } else if (_currentFrame - 1 == (int)frameNumber) { return getPreviousFrame(); } |