mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Merge pull request #9099 from broquaint/fix-incorrect-empty-call-for-rng-tutorial
Change call from empty to is_empty in RNG tutorial
This commit is contained in:
@@ -422,7 +422,7 @@ ends up empty. When that happens, you reinitialize it to its default value::
|
||||
|
||||
|
||||
func get_fruit():
|
||||
if _fruits.empty():
|
||||
if _fruits.is_empty():
|
||||
# Fill the fruits array again and shuffle it.
|
||||
_fruits = _fruits_full.duplicate()
|
||||
_fruits.shuffle()
|
||||
|
||||
Reference in New Issue
Block a user