diff options
author | Nicolas Bacca | 2003-12-23 00:59:18 +0000 |
---|---|---|
committer | Nicolas Bacca | 2003-12-23 00:59:18 +0000 |
commit | a1831ee4fb19f9ad2f02005ad8e4425e26ea8cc1 (patch) | |
tree | f8b5154023a5ce8ad53482e71291d5b88de1d07d /sword1/objectman.cpp | |
parent | 4abee143106cf5732e16e0b57f2474a5174bf27c (diff) | |
download | scummvm-rg350-a1831ee4fb19f9ad2f02005ad8e4425e26ea8cc1.tar.gz scummvm-rg350-a1831ee4fb19f9ad2f02005ad8e4425e26ea8cc1.tar.bz2 scummvm-rg350-a1831ee4fb19f9ad2f02005ad8e4425e26ea8cc1.zip |
Microsoft Compilers : Which part of the standard do you want to break today ?
svn-id: r11866
Diffstat (limited to 'sword1/objectman.cpp')
-rw-r--r-- | sword1/objectman.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sword1/objectman.cpp b/sword1/objectman.cpp index 2673cbb493..c35a911df5 100644 --- a/sword1/objectman.cpp +++ b/sword1/objectman.cpp @@ -32,7 +32,8 @@ ObjectMan::ObjectMan(ResMan *pResourceMan) { } void ObjectMan::initialize(void) { - for (uint16 cnt = 0; cnt < TOTAL_SECTIONS; cnt++) + uint16 cnt; + for (cnt = 0; cnt < TOTAL_SECTIONS; cnt++) _liveList[cnt] = 0; // we don't need to close the files here. When this routine is // called, the memory was flushed() anyways, so these resources // already *are* closed. @@ -40,7 +41,7 @@ void ObjectMan::initialize(void) { _liveList[128] = _liveList[129] = _liveList[130] = _liveList[131] = _liveList[133] = _liveList[134] = _liveList[145] = _liveList[146] = _liveList[TEXT_sect] = 1; - for (uint16 cnt = 0; cnt < TOTAL_SECTIONS; cnt++) { + for (cnt = 0; cnt < TOTAL_SECTIONS; cnt++) { if (_liveList[cnt]) _cptData[cnt] = (uint8*)_resMan->cptResOpen(_objectList[cnt]) + sizeof(Header); else |