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
Today I noticed that the EntityDatabaseManagerExtensions.GetEntity(entityDatabase, id) does not work as it is suposed to when using multiple EntityCollections and the entity with the specified id isn't found in the first collection.
An exception is thrown here but the code body in that extension method suggests the writer was assuming it'd collection.GetEntity(id) would return null if there's no entity with the id present in that entity collection.
The text was updated successfully, but these errors were encountered:
I will take a look into it after the bank holiday as I cant do much with kids around, but its probably a left over from when I did the re-write of how components/entities were tracked, so it sounds like a legitimate bug.
This should be fixed within the latest changes on master, however it hasnt been pushed out as a release yet, given this and the next couple of PRs may change the API somewhat I will wait until that is done before I flag it as complete.
Today I noticed that the EntityDatabaseManagerExtensions.GetEntity(entityDatabase, id) does not work as it is suposed to when using multiple EntityCollections and the entity with the specified id isn't found in the first collection.
An exception is thrown here but the code body in that extension method suggests the writer was assuming it'd collection.GetEntity(id) would return null if there's no entity with the id present in that entity collection.
The text was updated successfully, but these errors were encountered: