aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource_v4.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-04-04 07:25:21 +0000
committerTorbjörn Andersson2005-04-04 07:25:21 +0000
commitd08068dff1ea02314d791c1248d72091d4d5d9e9 (patch)
tree37ef67f2cc396789235baa5b8d2b2c1617fa0609 /scumm/resource_v4.cpp
parentc7ddbf7cad4b106d71499bdf925782ca69375bc9 (diff)
downloadscummvm-rg350-d08068dff1ea02314d791c1248d72091d4d5d9e9.tar.gz
scummvm-rg350-d08068dff1ea02314d791c1248d72091d4d5d9e9.tar.bz2
scummvm-rg350-d08068dff1ea02314d791c1248d72091d4d5d9e9.zip
Fixed warnings on little-endian systems.
svn-id: r17371
Diffstat (limited to 'scumm/resource_v4.cpp')
-rw-r--r--scumm/resource_v4.cpp3
1 files changed, 1 insertions, 2 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
}