diff --git a/src/FilterStorage.cs b/src/FilterStorage.cs index 163751e..3cdf170 100644 --- a/src/FilterStorage.cs +++ b/src/FilterStorage.cs @@ -9,7 +9,7 @@ namespace MoonTools.ECS private EntityStorage EntityStorage; private TypeIndices ComponentTypeIndices; private Dictionary> filterSignatureToEntityIDs = new Dictionary>(); - private Dictionary> typeToFilterSignatures = new Dictionary>(); + private Dictionary> typeToFilterSignatures = new Dictionary>(); private Dictionary> addCallbacks = new Dictionary>(); private Dictionary> removeCallbacks = new Dictionary>(); @@ -31,7 +31,7 @@ namespace MoonTools.ECS { if (!typeToFilterSignatures.ContainsKey(type)) { - typeToFilterSignatures.Add(type, new HashSet()); + typeToFilterSignatures.Add(type, new List()); } typeToFilterSignatures[type].Add(filterSignature); @@ -41,7 +41,7 @@ namespace MoonTools.ECS { if (!typeToFilterSignatures.ContainsKey(type)) { - typeToFilterSignatures.Add(type, new HashSet()); + typeToFilterSignatures.Add(type, new List()); } typeToFilterSignatures[type].Add(filterSignature);