Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The entity index reports an entity as alive the next frame, after a delete operation was pushed to the storage. #84

Open
Dandielo opened this issue Nov 17, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Dandielo
Copy link
Member

Describe the bug
Entity deletion from the ice::ecs::EntityIndex is happening after the worlds update methods are called. This results in an invalid state where the entity storage no longer has data for that entity (in the current implementation) however the entity index still returns true when checking if the entity is alive.

To Reproduce
After pushing an entity storage delete operation, the next frame will still report the entity as alive.

Expected behavior
After an entity is deleted from the storage it's deemed as destroyed and should be pushed on the 're-use' array.

@Dandielo Dandielo added the bug Something isn't working label Nov 17, 2021
@Dandielo Dandielo added this to To do in 2D Game Engine via automation Nov 17, 2021
@Dandielo
Copy link
Member Author

Should be done along with #83. This is going to change after that issue is close.

@Dandielo Dandielo added this to the IceShard - v0.1.0-beta milestone Nov 17, 2021
@Dandielo Dandielo removed this from To do in 2D Game Engine Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant