mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-19 02:24:37 +08:00
bug fix
This commit is contained in:
parent
753250025f
commit
d3081f19de
@ -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--);
|
||||||
|
Loading…
Reference in New Issue
Block a user