mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-21 15:44:23 +00:00
Remove pointless warning in Random.sample
This commit is contained in:
parent
ec9dab0790
commit
7c3f12cb13
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue