diff --git a/game/game.gd b/game/game.gd index 6800cf5..3211d6f 100644 --- a/game/game.gd +++ b/game/game.gd @@ -92,6 +92,9 @@ func _on_ghost_requested(scene: PackedScene, texture: Texture2D): func _on_ghost_materialize(): var instantiated = ghost.materialize() + if not instantiated: + print("[Game] The ghost can't materialize; the spawning is cancelled!") + return var spawner = instantiated.find_child("Spawner") if spawner != null: spawner.target = self