summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/array.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/npc/functions/array.txt b/npc/functions/array.txt
index 74a38a466..ca2d7fbd6 100644
--- a/npc/functions/array.txt
+++ b/npc/functions/array.txt
@@ -432,6 +432,8 @@ function script array_highest {
.@dw=false;
}
} else if (getelementofarray(getarg(0), .@i) == .@win) {
+ if (!.@dw)
+ array_push(.@draw, .@idx);
array_push(.@draw, .@i);
.@dw=true;
}