You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the World method TryGetArchetype(Type[], out Archetype) the backing PooledDictionary uses reference equality, which leads to unexpected behavior such as this:
In the World method
TryGetArchetype(Type[], out Archetype)
the backingPooledDictionary
uses reference equality, which leads to unexpected behavior such as this:Creating 2 Archetypes in the World as
archTypes1
andarchTypes2
don't reference the same instance ofType[]
.The fix is quite easy, implement an
IEqualityComparer<Type[]>
that usesSequenceEquals
and pass it to thePooledDictionary
to use.The text was updated successfully, but these errors were encountered: