From 3b52ceb2e328d256d2dc48d59216035ef4b74d5c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 14 Jul 2019 01:45:21 -0300 Subject: 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. --- npc/functions/main.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/functions/main.txt') 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( ) 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 -- cgit v1.2.3-70-g09d2