diff options
author | Paweł Kołodziejski | 2005-01-27 21:34:21 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2005-01-27 21:34:21 +0000 |
commit | dd2f9da1a84e722d850747756f57cd273d435a7f (patch) | |
tree | 11699478b344d4944d5d0c7f538ba16c585db834 /sky/compact.cpp | |
parent | c0c9a68fe5d5a61ec53774249e678385aef283ac (diff) | |
download | scummvm-rg350-dd2f9da1a84e722d850747756f57cd273d435a7f.tar.gz scummvm-rg350-dd2f9da1a84e722d850747756f57cd273d435a7f.tar.bz2 scummvm-rg350-dd2f9da1a84e722d850747756f57cd273d435a7f.zip |
fix compilation
svn-id: r16651
Diffstat (limited to 'sky/compact.cpp')
-rw-r--r-- | sky/compact.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sky/compact.cpp b/sky/compact.cpp index 8ceaf2c20a..53671ae296 100644 --- a/sky/compact.cpp +++ b/sky/compact.cpp @@ -184,7 +184,8 @@ SkyCompact::SkyCompact(void) { uint16 *dlincPos = dlincBuf; _cptFile->read(dlincBuf, numDlincs * 2 * sizeof(uint16)); // these compacts don't actually exist but only point to other ones... - for (uint16 cnt = 0; cnt < numDlincs; cnt++) { + uint16 cnt; + for (cnt = 0; cnt < numDlincs; cnt++) { uint16 dlincId = READ_LE_UINT16(dlincPos++); uint16 destId = READ_LE_UINT16(dlincPos++); assert(((dlincId >> 12) < _numDataLists) && ((dlincId & 0xFFF) < _dataListLen[dlincId >> 12]) && (_compacts[dlincId >> 12][dlincId & 0xFFF] == NULL)); @@ -219,7 +220,7 @@ SkyCompact::SkyCompact(void) { _numSaveIds = _cptFile->readUint16LE(); _saveIds = (uint16*)malloc(_numSaveIds * sizeof(uint16)); _cptFile->read(_saveIds, _numSaveIds * sizeof(uint16)); - for (uint16 cnt = 0; cnt < _numSaveIds; cnt++) + for (cnt = 0; cnt < _numSaveIds; cnt++) _saveIds[cnt] = FROM_LE_16(_saveIds[cnt]); _resetDataPos = _cptFile->pos(); } |