mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Merge pull request #9099 from broquaint/fix-incorrect-empty-call-for-rng-tutorial
Change call from empty to is_empty in RNG tutorial
(cherry picked from commit ea77d5a395)
This commit is contained in:
committed by
Max Hilbrunner
parent
bdb56e46b1
commit
0129a31803
@@ -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