aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v72he.cpp
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 /scumm/script_v72he.cpp
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
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r--scumm/script_v72he.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}