diff --git a/src/Arch/Core/World.cs b/src/Arch/Core/World.cs index e4547a1..c98e19c 100644 --- a/src/Arch/Core/World.cs +++ b/src/Arch/Core/World.cs @@ -608,7 +608,7 @@ public Entity Duplicate(Entity sourceEntity) OnEntityCreated(sourceEntity); #if EVENTS - foreach (ref var type in archetype.Types) + foreach (var type in archetype.Types) { OnComponentAdded(sourceEntity, type); }