This commit is contained in:
Mikhail 2024-08-03 22:11:55 +08:00
parent 753250025f
commit d3081f19de

View File

@ -553,10 +553,13 @@ namespace DCFApixels.DragonECS
} }
for (int i = 0; i < _groups.Count; i++) for (int i = 0; i < _groups.Count; i++)
{ {
if (_groups[i].TryGetTarget(out EcsGroup group) && group.IsReleased) if (_groups[i].TryGetTarget(out EcsGroup group))
{
if(group.IsReleased)
{ {
group.OnReleaseDelEntityBuffer_Internal(buffer); group.OnReleaseDelEntityBuffer_Internal(buffer);
} }
}
else else
{ {
RemoveGroupAt(i--); RemoveGroupAt(i--);