Assigning a component again now returns the component instead of null

This commit is contained in:
Simon Lübeß
2021-09-14 23:00:42 +02:00
parent b0b5f76423
commit cb2c83678e
+3 -3
View File
@@ -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;