From 279603031557a891326c7f629d3cc3eff8af1f85 Mon Sep 17 00:00:00 2001 From: Nathan Woodward Date: Wed, 16 Oct 2024 18:46:05 +0100 Subject: [PATCH] Fix for ifdefed code --- src/Arch/Core/World.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Arch/Core/World.cs b/src/Arch/Core/World.cs index 3d117df..e4547a1 100644 --- a/src/Arch/Core/World.cs +++ b/src/Arch/Core/World.cs @@ -610,7 +610,7 @@ public Entity Duplicate(Entity sourceEntity) #if EVENTS foreach (ref var type in archetype.Types) { - OnComponentAdded(entity, type); + OnComponentAdded(sourceEntity, type); } #endif