Browse Source

Merge pull request #50 from jlreymendez/SECS_3_0_BETA

Fix Id usage in TypeSafeDictionary.AddEntityToDictionary
pull/51/head
Sebastiano Mandalà GitHub 4 years ago
parent
commit
14e26d507b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Svelto.ECS/DataStructures/TypeSafeDictionary.cs

+ 2
- 2
Svelto.ECS/DataStructures/TypeSafeDictionary.cs View File

@@ -128,7 +128,7 @@ namespace Svelto.ECS.Internal
if (_hasEgid)
SetEGIDWithoutBoxing<TValue>.SetIDWithoutBoxing(ref entity, toEntityID);

toGroupCasted.Add(fromEntityGid.entityID, entity);
toGroupCasted.Add(toEntityID.entityID, entity);
}
}
else
@@ -144,7 +144,7 @@ namespace Svelto.ECS.Internal
if (_hasEgid)
SetEGIDWithoutBoxing<TValue>.SetIDWithoutBoxing(ref entity, toEntityID);

toGroupCasted.Add(fromEntityGid.entityID, entity);
toGroupCasted.Add(toEntityID.entityID, entity);
}
}
}


Loading…
Cancel
Save