aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v72he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 52059b8de9..2804b1197c 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -1163,7 +1163,7 @@ void ScummEngine_v72he::o72_arrayOps() {
if (d == 0) {
defineArray(array, kDwordArray, 0, 0, 0, b + c);
}
- while (--c) {
+ while (c--) {
writeArray(array, 0, b + c, pop());
}
break;