aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-05-22 15:52:39 +0000
committerTorbjörn Andersson2005-05-22 15:52:39 +0000
commit93d90fd0577acc94f79c354ae1da8322b4caa326 (patch)
tree28db1dbd7194ddea11a2141a0db9f4d76cd4e70c
parente787c3d9a620572e59304b98ae2be5a9b7323309 (diff)
downloadscummvm-rg350-93d90fd0577acc94f79c354ae1da8322b4caa326.tar.gz
scummvm-rg350-93d90fd0577acc94f79c354ae1da8322b4caa326.tar.bz2
scummvm-rg350-93d90fd0577acc94f79c354ae1da8322b4caa326.zip
'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
-rw-r--r--scumm/script_v100he.cpp4
-rw-r--r--scumm/script_v72he.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/scumm/script_v100he.cpp b/scumm/script_v100he.cpp
index c9a0b8c5fd..d412be67af 100644
--- a/scumm/script_v100he.cpp
+++ b/scumm/script_v100he.cpp
@@ -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;
}
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index c7c2057c68..590a63dcaf 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -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;
}