diff options
author | Travis Howell | 2005-04-08 07:49:06 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-08 07:49:06 +0000 |
commit | c2aff3bf4649325f563fff9f3521f3fdbaab26b1 (patch) | |
tree | 14ade59ea7a0ff32a55576c18d06ff185a979cfa /scumm/script_v72he.cpp | |
parent | f04f741b8bd8d3dcbd2819c945c3e9adb6a043b9 (diff) | |
download | scummvm-rg350-c2aff3bf4649325f563fff9f3521f3fdbaab26b1.tar.gz scummvm-rg350-c2aff3bf4649325f563fff9f3521f3fdbaab26b1.tar.bz2 scummvm-rg350-c2aff3bf4649325f563fff9f3521f3fdbaab26b1.zip |
A few off by 1's.
svn-id: r17448
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r-- | scumm/script_v72he.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 5786c5e45b..4742af19fb 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -1809,17 +1809,17 @@ void ScummEngine_v72he::o72_writeFile() { void ScummEngine_v72he::o72_findAllObjects() { int room = pop(); - int i = 1; + int i; if (room != _currentRoom) - warning("o72_findAllObjects: current room is not %d", room); + error("o72_findAllObjects: current room is not %d", room); + writeVar(0, 0); - defineArray(0, kDwordArray, 0, 0, 0, _numLocalObjects + 1); + defineArray(0, kDwordArray, 0, 0, 0, _numLocalObjects); writeArray(0, 0, 0, _numLocalObjects); - while (i < _numLocalObjects) { + for (int i = 1; i < _numLocalObjects; i++) { writeArray(0, 0, i, _objs[i].obj_nr); - i++; } push(readVar(0)); |