Browse Source

fix bug

tags/Rel25b
sebas77 6 years ago
parent
commit
a19272b54d
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      Svelto.ECS/EnginesRoot.Submission.cs

+ 3
- 5
Svelto.ECS/EnginesRoot.Submission.cs View File

@@ -65,12 +65,10 @@ namespace Svelto.ECS
ITypeSafeDictionary dbDic;
FasterDictionary<int, ITypeSafeDictionary> groupedGroup = null;
if (groupDB.TryGetValue(entityViewTypeSafeDictionary.Key, out dbDic) == false)
{
dbDic = groupDB[entityViewTypeSafeDictionary.Key] = entityViewTypeSafeDictionary.Value.Create();
if (_groupedGroups.TryGetValue(entityViewTypeSafeDictionary.Key, out groupedGroup) == false)
groupedGroup = _groupedGroups[entityViewTypeSafeDictionary.Key] = new FasterDictionary<int, ITypeSafeDictionary>();
}
if (_groupedGroups.TryGetValue(entityViewTypeSafeDictionary.Key, out groupedGroup) == false)
groupedGroup = _groupedGroups[entityViewTypeSafeDictionary.Key] = new FasterDictionary<int, ITypeSafeDictionary>();

//type safe copy
dbDic.FillWithIndexedEntities(entityViewTypeSafeDictionary.Value);


Loading…
Cancel
Save