From 30d4d1c6d1101f39a9318cf46931175dbc43b9c1 Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 16 Aug 2023 14:39:17 -0400 Subject: [PATCH] Document pick_random for empty arrays --- doc/classes/Array.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 999cc6fa29..d17dbd2573 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -462,7 +462,7 @@ - Returns a random value from the target array. + Returns a random value from the target array. Prints an error and returns [code]null[/code] if the array is empty. [codeblocks] [gdscript] var array: Array[int] = [1, 2, 3, 4]