summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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