actually free IDs on message clear
continuous-integration/drone/push Build is passing Details

pull/3/head
Evan Hemsley 2020-03-22 12:14:57 -07:00
parent 002cff1c2e
commit 67bc55e780
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,10 @@ namespace Encompass
public override void Clear() public override void Clear()
{ {
foreach (var index in _indices)
{
_idManager.Free(index);
}
_indices.Clear(); _indices.Clear();
foreach (var set in _entityToIndices.Values) foreach (var set in _entityToIndices.Values)
{ {