bugfix
This commit is contained in:
parent
bc8926725a
commit
40d50bbda9
2 changed files with 3 additions and 2 deletions
|
@ -24,7 +24,8 @@ class EntityManager
|
|||
if(_entities.Count + 1 > Entity.IndexMask)
|
||||
return .Null; //It would be beneficial if we could avoid this check
|
||||
#endif
|
||||
return .((.)_entities..Add(.((.)_entities.Count, 0)).Count, 0);
|
||||
_entities.Add(Entity((.)_entities.Count,0));
|
||||
return _entities.Back;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ abstract class System
|
|||
//We now have the list of entities to loop through
|
||||
Span<Entity> entities = ecs.Components.Components[comp].GetAll();
|
||||
UList main = ecs.Components.Components[comp].[Friend]_packedEntities;
|
||||
var cun = entities.Length - 1;
|
||||
var cun = entities.Length;
|
||||
|
||||
#region DumbStatement
|
||||
switch (_Components.Count)
|
||||
|
|
Loading…
Add table
Reference in a new issue