From 016e2c56121248c5ffe27c44da6104d4097ea619 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Sun, 14 Jul 2019 20:43:24 -0700 Subject: [PATCH] change entities marked for destroy list to a hashset --- encompass-cs/EntityManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>();