Skip to content

Commit

Permalink
Merge pull request #50 from jlreymendez/SECS_3_0_BETA
Browse files Browse the repository at this point in the history
Fix Id usage in TypeSafeDictionary.AddEntityToDictionary
  • Loading branch information
sebas77 authored Jul 21, 2020
2 parents 299178a + ada6261 commit 14e26d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Svelto.ECS/DataStructures/TypeSafeDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void AddEntityToDictionary(EGID fromEntityGid, EGID toEntityID, ITypeSafe
if (_hasEgid)
SetEGIDWithoutBoxing<TValue>.SetIDWithoutBoxing(ref entity, toEntityID);

toGroupCasted.Add(fromEntityGid.entityID, entity);
toGroupCasted.Add(toEntityID.entityID, entity);
}
}
else
Expand All @@ -144,7 +144,7 @@ public void AddEntityToDictionary(EGID fromEntityGid, EGID toEntityID, ITypeSafe
if (_hasEgid)
SetEGIDWithoutBoxing<TValue>.SetIDWithoutBoxing(ref entity, toEntityID);

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

0 comments on commit 14e26d5

Please sign in to comment.