summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 2aa670ca4..c184a9ea5 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -257,7 +257,7 @@ function script rand2 {
// returns one argument randomly
// any( <arg>{, ...<arg>} )
function script any {
- return getarg(rand2(getargcount()));
+ return getarg(rand2(getargcount()-1));
}
// returns any member of the array