diff --git a/Utils/Spawner.cs b/Utils/Spawner.cs index 07a5351..6bacdc4 100644 --- a/Utils/Spawner.cs +++ b/Utils/Spawner.cs @@ -53,7 +53,7 @@ public partial class Spawner : Node2D var chr = Character.Instantiate(); chr.GlobalPosition = randPos; - this.GetAncestor().Entities.AddChild(chr); + World.Instance.CurrentMap.Entities.AddChild(chr); } } }