aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/zvision/rlf_animation.cpp6
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();
}