diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-01 21:51:56 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-01 21:51:56 -0300 |
commit | 9f487f04452c06a357038d972f4626be56462227 (patch) | |
tree | 0cca5b6ea653b39c1265cdf32312a5436977d2d8 /npc/functions/main.txt | |
parent | 7531459bc4fe0180abfc228d36ec8cf6032608f1 (diff) | |
download | serverdata-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
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r-- | npc/functions/main.txt | 2 |
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 |