summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-14 01:45:21 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-14 01:45:21 -0300
commit3b52ceb2e328d256d2dc48d59216035ef4b74d5c (patch)
tree6cdcbebfa993d270af135708103bec18de3c02cb /npc/functions/main.txt
parenta8aea065bd5e995a4b21072654f210003790a14a (diff)
downloadserverdata-3b52ceb2e328d256d2dc48d59216035ef4b74d5c.tar.gz
serverdata-3b52ceb2e328d256d2dc48d59216035ef4b74d5c.tar.bz2
serverdata-3b52ceb2e328d256d2dc48d59216035ef4b74d5c.tar.xz
serverdata-3b52ceb2e328d256d2dc48d59216035ef4b74d5c.zip
I don't see any specific error message to don't use rand2() in any_of()
But if old bugs get revived CALL ME AT ONCE.
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 055c7630e..5e897901b 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -263,7 +263,7 @@ function script any {
// returns any member of the array
// any_of( <array> )
function script any_of {
- return getelementofarray(getarg(0), getarrayindex(getarg(0)) + rand(getarraysize(getarg(0)) - getarrayindex(getarg(0))));
+ return getelementofarray(getarg(0), getarrayindex(getarg(0)) + rand2(getarraysize(getarg(0)) - getarrayindex(getarg(0))));
}
// TMW2 Custom Functions