diff options
-rw-r--r-- | scumm/script_v6.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index 0403b05664..61a3bdc0f3 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -3102,9 +3102,10 @@ void ScummEngine_v6::o6_setBoxSet() { const byte *room = getResourceAddress(rtRoom, _roomResource); const byte *boxd = NULL, *boxm = NULL; int32 dboxSize, mboxSize; + int i; ResourceIterator boxds(room, false); - for (int i = 0; i < arg; i++) + for (i = 0; i < arg; i++) boxd = boxds.findNext(MKID('BOXD')); if (!boxd) @@ -3117,7 +3118,7 @@ void ScummEngine_v6::o6_setBoxSet() { memcpy(matrix, boxd, dboxSize); ResourceIterator boxms(room, false); - for (int i = 0; i < arg; i++) + for (i = 0; i < arg; i++) boxm = boxms.findNext(MKID('BOXM')); if (!boxm) |