mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 18:24:59 +00:00
'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:
parent
e787c3d9a6
commit
93d90fd057
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user