From b3f4ba3417930d247363dfde155fed91503fb932 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Fri, 20 Feb 2004 22:16:44 +0000 Subject: EVC ... no ... comments ... please :) svn-id: r12945 --- scumm/script_v6.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scumm') 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) -- cgit v1.2.3