From 9f487f04452c06a357038d972f4626be56462227 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 21:51:56 -0300 Subject: Fix a bug on any() - seems to be a bit old though --- npc/functions/main.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( {, ...} ) function script any { - return getarg(rand2(getargcount())); + return getarg(rand2(getargcount()-1)); } // returns any member of the array -- cgit v1.2.3-70-g09d2