summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 21:51:56 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 21:51:56 -0300
commit9f487f04452c06a357038d972f4626be56462227 (patch)
tree0cca5b6ea653b39c1265cdf32312a5436977d2d8
parent7531459bc4fe0180abfc228d36ec8cf6032608f1 (diff)
downloadserverdata-9f487f04452c06a357038d972f4626be56462227.tar.gz
serverdata-9f487f04452c06a357038d972f4626be56462227.tar.bz2
serverdata-9f487f04452c06a357038d972f4626be56462227.tar.xz
serverdata-9f487f04452c06a357038d972f4626be56462227.zip
Fix a bug on any() - seems to be a bit old though
-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