From cb2c83678eb51e4f17bb6c5a66b2fb10e374327e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Tue, 14 Sep 2021 23:00:42 +0200 Subject: [PATCH] Assigning a component again now returns the component instead of null --- GlitchyEngine/src/World/EcsWorld.bf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GlitchyEngine/src/World/EcsWorld.bf b/GlitchyEngine/src/World/EcsWorld.bf index 297ad0f..a94dfa3 100644 --- a/GlitchyEngine/src/World/EcsWorld.bf +++ b/GlitchyEngine/src/World/EcsWorld.bf @@ -160,9 +160,9 @@ namespace GlitchyEngine.World return null; } - // TODO: maybe assert? - if(listEntity.ComponentMask[entry.Id]) - return null; + // TODO: is it a problem to assign a component again? + //if(listEntity.ComponentMask[entry.Id]) + // return null; listEntity.ComponentMask[entry.Id] = true;