aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r--scumm/script_v6.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 49051548f2..81c1940e1a 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -566,7 +566,7 @@ int ScummEngine_v6::getStackList(int *args, uint maxnum) {
error("Too many items %d in stack list, max %d", num, maxnum);
i = num;
- while (((int)--i) >= 0) {
+ while (i--) {
args[i] = pop();
}