diff --git a/OpenRA.Mods.Common/Traits/ProductionFromMapEdge.cs b/OpenRA.Mods.Common/Traits/ProductionFromMapEdge.cs index aea18e07fe..91650267f0 100644 --- a/OpenRA.Mods.Common/Traits/ProductionFromMapEdge.cs +++ b/OpenRA.Mods.Common/Traits/ProductionFromMapEdge.cs @@ -22,7 +22,7 @@ namespace OpenRA.Mods.Common.Traits public override object Create(ActorInitializer init) { return new ProductionFromMapEdge(init, this); } } - class ProductionFromMapEdge : Production, INotifyCreated + class ProductionFromMapEdge : Production { readonly CPos? spawnLocation; readonly DomainIndex domainIndex; @@ -36,8 +36,10 @@ namespace OpenRA.Mods.Common.Traits spawnLocation = init.Get(); } - void INotifyCreated.Created(Actor self) + protected override void Created(Actor self) { + base.Created(self); + rp = self.TraitOrDefault(); }