aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hugo/file_v1d.cpp2
-rw-r--r--engines/hugo/file_v1w.cpp4
-rw-r--r--engines/hugo/file_v2d.cpp4
-rw-r--r--engines/hugo/file_v3d.cpp8
4 files changed, 9 insertions, 9 deletions
diff --git a/engines/hugo/file_v1d.cpp b/engines/hugo/file_v1d.cpp
index e61d6a029c..72f99615b8 100644
--- a/engines/hugo/file_v1d.cpp
+++ b/engines/hugo/file_v1d.cpp
@@ -64,7 +64,7 @@ void FileManager_v1d::readOverlay(int screenNum, image_pt image, ovl_t overlayTy
strcat(strcpy(buf, _vm->_screenNames[screenNum]), ovl_ext[overlayType]);
if (!fileExists(buf)) {
- for (uint32 i = 0; i < kOvlSize; i++)
+ for (int i = 0; i < kOvlSize; i++)
image[i] = 0;
warning("File not found: %s", buf);
return;
diff --git a/engines/hugo/file_v1w.cpp b/engines/hugo/file_v1w.cpp
index 2701b67c2b..38235189e0 100644
--- a/engines/hugo/file_v1w.cpp
+++ b/engines/hugo/file_v1w.cpp
@@ -81,8 +81,8 @@ void FileManager_v1w::readOverlay(int screenNum, image_pt image, ovl_t overlayTy
break;
}
if (i == 0) {
- for (i = 0; i < kOvlSize; i++)
- image[i] = 0;
+ for (int idx = 0; idx < kOvlSize; idx++)
+ image[idx] = 0;
return;
}
_sceneryArchive1.read(tmpImage, kOvlSize);
diff --git a/engines/hugo/file_v2d.cpp b/engines/hugo/file_v2d.cpp
index a935977a7e..3a99c68382 100644
--- a/engines/hugo/file_v2d.cpp
+++ b/engines/hugo/file_v2d.cpp
@@ -134,8 +134,8 @@ void FileManager_v2d::readOverlay(int screenNum, image_pt image, ovl_t overlayTy
break;
}
if (i == 0) {
- for (i = 0; i < kOvlSize; i++)
- image[i] = 0;
+ for (int idx = 0; idx < kOvlSize; idx++)
+ image[idx] = 0;
return;
}
diff --git a/engines/hugo/file_v3d.cpp b/engines/hugo/file_v3d.cpp
index a0a5bc1119..4e3570ad95 100644
--- a/engines/hugo/file_v3d.cpp
+++ b/engines/hugo/file_v3d.cpp
@@ -143,8 +143,8 @@ void FileManager_v3d::readOverlay(int screenNum, image_pt image, ovl_t overlayTy
break;
}
if (i == 0) {
- for (i = 0; i < kOvlSize; i++)
- image[i] = 0;
+ for (int idx = 0; idx < kOvlSize; idx++)
+ image[idx] = 0;
return;
}
@@ -183,8 +183,8 @@ void FileManager_v3d::readOverlay(int screenNum, image_pt image, ovl_t overlayTy
break;
}
if (i == 0) {
- for (i = 0; i < kOvlSize; i++)
- image[i] = 0;
+ for (int idx = 0; idx < kOvlSize; idx++)
+ image[idx] = 0;
return;
}