Remove obsolete occurrences of IComponent.Owner being assigned just before AddComponent (#30724)
This commit is contained in:
@@ -50,8 +50,7 @@ public sealed class RandomHumanoidSystem : EntitySystem
|
||||
{
|
||||
foreach (var entry in prototype.Components.Values)
|
||||
{
|
||||
var comp = (Component) _serialization.CreateCopy(entry.Component, notNullableOverride: true);
|
||||
comp.Owner = humanoid; // This .owner must survive for now.
|
||||
var comp = (Component)_serialization.CreateCopy(entry.Component, notNullableOverride: true);
|
||||
EntityManager.RemoveComponent(humanoid, comp.GetType());
|
||||
EntityManager.AddComponent(humanoid, comp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user