[Scummvm-git-logs] scummvm master -> ef8b5fab86d674160c0a70e4c62c05e98ec79ec7

bluegr noreply at scummvm.org
Wed Jul 1 22:02:38 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
ef8b5fab86 SKY: Redeclare loop variables


Commit: ef8b5fab86d674160c0a70e4c62c05e98ec79ec7
    https://github.com/scummvm/scummvm/commit/ef8b5fab86d674160c0a70e4c62c05e98ec79ec7
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-07-02T01:02:35+03:00

Commit Message:
SKY: Redeclare loop variables

Changed paths:
    engines/sky/screen.cpp


diff --git a/engines/sky/screen.cpp b/engines/sky/screen.cpp
index a449cf74c00..4b69b16b723 100644
--- a/engines/sky/screen.cpp
+++ b/engines/sky/screen.cpp
@@ -196,7 +196,7 @@ Screen::Screen(OSystem *pSystem, Disk *pDisk, SkyCompact *skyCompact) {
 	_seqInfo.seqData = _seqInfo.seqDataPos = NULL;
 	_seqInfo.running = false;
 
-	for (i = 0; i < NUM_UI_ICONS; i++) {
+	for (int i = 0; i < NUM_UI_ICONS; i++) {
 		_uiIcon[i]._visible = false;
 		_uiIcon[i]._anim = nullptr;
 		_uiIcon[i]._x = 0;
@@ -204,7 +204,7 @@ Screen::Screen(OSystem *pSystem, Disk *pDisk, SkyCompact *skyCompact) {
 		_uiIcon[i]._alpha = 0.0f;
 	}
 
-	for (i = 0; i < NUM_PROXIMITY_ICONS; i++) {
+	for (int i = 0; i < NUM_PROXIMITY_ICONS; i++) {
 		_proximityIcon[i]._visible = false;
 		_proximityIcon[i]._anim = nullptr;
 		_proximityIcon[i]._x = 0;
@@ -212,7 +212,7 @@ Screen::Screen(OSystem *pSystem, Disk *pDisk, SkyCompact *skyCompact) {
 		_proximityIcon[i]._alpha = 0.0f;
 	}
 
-	for (i = 0; i < NUM_INV_ICONS; i++) {
+	for (int i = 0; i < NUM_INV_ICONS; i++) {
 		_invIcon[i]._visible = false;
 		_invIcon[i]._anim = nullptr;
 		_invIcon[i]._x = 0;
@@ -220,7 +220,7 @@ Screen::Screen(OSystem *pSystem, Disk *pDisk, SkyCompact *skyCompact) {
 		_invIcon[i]._alpha = 0.0f;
 	}
 
-	for (i = 0; i < NUM_INV_ANIMS; i++) {
+	for (int i = 0; i < NUM_INV_ANIMS; i++) {
 		char invTexFile[64];
 		Common::sprintf_s(invTexFile, "%d.tex", invIconId[i]);
 




More information about the Scummvm-git-logs mailing list