Fix: Added call_deferred on _spawn_minimum

This commit is contained in:
MartinOpat 2026-02-01 09:36:14 +01:00
parent 69776a6973
commit 6432b709ef
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ extends SpawnManager2D
func _ready() -> void:
spawnRange = GameManager.extent
#spawnRange = cam.get_viewport_rect()
_spawn_minimum()
call_deferred("_spawn_minimum")
# Called every frame. 'delta' is the elapsed time since the previous frame.

View File

@ -37,4 +37,4 @@ func _spawn_creature(position: Vector2) -> void:
func _on_entity_died() -> void:
_currentCount = max(0, _currentCount-1)
_spawn_minimum()
call_deferred("_spawn_minimum")