aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2004-02-20 22:16:44 +0000
committerNicolas Bacca2004-02-20 22:16:44 +0000
commitb3f4ba3417930d247363dfde155fed91503fb932 (patch)
tree3f29aef72a0accf11567a0cabe310c520d5d0966
parent5c59d9a66b5cf9ac9d11da915cef9684bbae2058 (diff)
downloadscummvm-rg350-b3f4ba3417930d247363dfde155fed91503fb932.tar.gz
scummvm-rg350-b3f4ba3417930d247363dfde155fed91503fb932.tar.bz2
scummvm-rg350-b3f4ba3417930d247363dfde155fed91503fb932.zip
EVC ... no ... comments ... please :)
svn-id: r12945
-rw-r--r--scumm/script_v6.cpp5
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)