aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-01-28 10:40:59 +0000
committerTorbjörn Andersson2005-01-28 10:40:59 +0000
commit7f077369e657097dc9372da2265c4e4311abd7a1 (patch)
tree664c20f4ed53a0dc65a6c9c6416931c278fe4331
parent285f6a6a2bf00217d43267fc9bc643201e29fed2 (diff)
downloadscummvm-rg350-7f077369e657097dc9372da2265c4e4311abd7a1.tar.gz
scummvm-rg350-7f077369e657097dc9372da2265c4e4311abd7a1.tar.bz2
scummvm-rg350-7f077369e657097dc9372da2265c4e4311abd7a1.zip
Fix warning introduced by previous commit.
svn-id: r16654
-rw-r--r--sky/compact.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sky/compact.cpp b/sky/compact.cpp
index 53671ae296..199e2a5462 100644
--- a/sky/compact.cpp
+++ b/sky/compact.cpp
@@ -126,7 +126,7 @@ SkyCompact::SkyCompact(void) {
error("Unable to find \"sky.cpt\" file\nPlease download it from www.scummvm.org");
}
- uint16 fileVersion = _cptFile->readUint16LE();
+ uint16 fileVersion = _cptFile->readUint16LE();
if (fileVersion != 0)
error("unknown \"sky.cpt\" version");
@@ -204,7 +204,7 @@ SkyCompact::SkyCompact(void) {
_cptFile->read(diffBuf, diffSize * sizeof(uint16));
if (SkyEngine::_systemVars.gameVersion == 288) {
uint16 *diffPos = diffBuf;
- for (uint16 cnt = 0; cnt < numDiffs; cnt++) {
+ for (cnt = 0; cnt < numDiffs; cnt++) {
uint16 cptId = READ_LE_UINT16(diffPos++);
uint16 *rawCpt = (uint16*)fetchCpt(cptId);
rawCpt += READ_LE_UINT16(diffPos++);
@@ -221,7 +221,7 @@ SkyCompact::SkyCompact(void) {
_saveIds = (uint16*)malloc(_numSaveIds * sizeof(uint16));
_cptFile->read(_saveIds, _numSaveIds * sizeof(uint16));
for (cnt = 0; cnt < _numSaveIds; cnt++)
- _saveIds[cnt] = FROM_LE_16(_saveIds[cnt]);
+ _saveIds[cnt] = FROM_LE_16(_saveIds[cnt]);
_resetDataPos = _cptFile->pos();
}