mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
fix
This commit is contained in:
parent
bdecd86e00
commit
6147518858
@ -383,7 +383,8 @@ namespace DCFApixels.DragonECS
|
||||
int delCount = 0;
|
||||
foreach (var e in Entities)
|
||||
{
|
||||
if (_entities[e].componentsCount <= 0)
|
||||
ref var ent = ref _entities[e];
|
||||
if (ent.componentsCount <= 0 && ent.isUsed)
|
||||
{
|
||||
delCount++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user