1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-21 07:34:22 +00:00

Remove pointless warning in Random.sample

This commit is contained in:
Steffo 2024-04-28 11:28:13 +02:00
parent ec9dab0790
commit 7c3f12cb13
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -14,7 +14,6 @@ static var rng: RandomNumberGenerator = null:
static func sample(array: Array[Variant], imin = null, imax = null) -> Variant:
if len(array) == 0:
Log.w(null, "Sampling from an empty array.")
return null
if imin == null:
imin = 0