fix(oecs): clear dense entities array on reset

This commit is contained in:
hypercross 2026-07-18 22:06:33 +08:00
parent b6e64d2871
commit ac7cd80a6f
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ internal class SparseSet<T> : ISparseSet where T : struct
{
_sparse[_denseEntities[i].Id] = -1;
}
Array.Clear(_denseEntities, 0, _count);
_count = 0;
}