mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Assigning a component again now returns the component instead of null
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user