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

View File

@ -553,9 +553,12 @@ 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))
{ {
group.OnReleaseDelEntityBuffer_Internal(buffer); if(group.IsReleased)
{
group.OnReleaseDelEntityBuffer_Internal(buffer);
}
} }
else else
{ {