diff options
-rw-r--r-- | scumm/resource_v4.cpp | 3 | ||||
-rw-r--r-- | scumm/resource_v7he.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/scumm/resource_v4.cpp b/scumm/resource_v4.cpp index 6392f3bf50..6eb65f7882 100644 --- a/scumm/resource_v4.cpp +++ b/scumm/resource_v4.cpp @@ -204,7 +204,6 @@ void ScummEngine_v8::readGlobalObjects() { } void ScummEngine_v7::readGlobalObjects() { - int i; int num = _fileHandle->readUint16LE(); assert(num == _numGlobalObjects); @@ -216,7 +215,7 @@ void ScummEngine_v7::readGlobalObjects() { #if defined(SCUMM_BIG_ENDIAN) // Correct the endianess if necessary - for (i = 0; i != num; i++) + for (int i = 0; i != num; i++) _classData[i] = FROM_LE_32(_classData[i]); #endif } diff --git a/scumm/resource_v7he.cpp b/scumm/resource_v7he.cpp index 976c741342..904984f5df 100644 --- a/scumm/resource_v7he.cpp +++ b/scumm/resource_v7he.cpp @@ -1641,7 +1641,6 @@ void ScummEngine_v70he::readRoomsOffsets() { } void ScummEngine_v70he::readGlobalObjects() { - int i; int num = _fileHandle->readUint16LE(); assert(num == _numGlobalObjects); @@ -1653,7 +1652,7 @@ void ScummEngine_v70he::readGlobalObjects() { #if defined(SCUMM_BIG_ENDIAN) // Correct the endianess if necessary - for (i = 0; i != num; i++) + for (int i = 0; i != num; i++) _classData[i] = FROM_LE_32(_classData[i]); #endif } |