diff --git a/encompass-cs/EntityManager.cs b/encompass-cs/EntityManager.cs index a8266da..f58fe19 100644 --- a/encompass-cs/EntityManager.cs +++ b/encompass-cs/EntityManager.cs @@ -7,7 +7,7 @@ namespace Encompass { private readonly Dictionary IDToEntity = new Dictionary(); - private readonly List entitiesMarkedForDestroy = new List(); + private readonly HashSet entitiesMarkedForDestroy = new HashSet(); private readonly Dictionary> componentTypeToEntityTrackers = new Dictionary>(); private readonly Dictionary> entityToEntityTrackers = new Dictionary>();