'len' is not initialized at this point, but if the purpose is to reset tmp3

to its original value, this should do just as well. But I don't know where
it's used, so I can't really test this.

svn-id: r18221
This commit is contained in:
Torbjörn Andersson 2005-05-22 15:52:39 +00:00
parent e787c3d9a6
commit 93d90fd057
2 changed files with 4 additions and 4 deletions

View File

@ -677,14 +677,14 @@ void ScummEngine_v100he::o100_arrayOps() {
offs = (b >= c) ? 1 : -1;
tmp2 = c;
tmp3 = c - b + 1;;
tmp3 = c - b + 1;
while (dim2start <= dim2end) {
tmp = dim1start;
while (tmp <= dim1end) {
writeArray(array, dim2start, tmp, tmp2);
if (--tmp3 == 0) {
tmp2 = c;
tmp3 = len;
tmp3 = c - b + 1;
} else {
tmp2 += offs;
}

View File

@ -1515,14 +1515,14 @@ void ScummEngine_v72he::o72_arrayOps() {
offs = (b >= c) ? 1 : -1;
tmp2 = c;
tmp3 = c - b + 1;;
tmp3 = c - b + 1;
while (dim2start <= dim2end) {
tmp = dim1start;
while (tmp <= dim1end) {
writeArray(array, dim2start, tmp, tmp2);
if (--tmp3 == 0) {
tmp2 = c;
tmp3 = len;
tmp3 = c - b + 1;
} else {
tmp2 += offs;
}