Skip to content

Fix: StructuralSparseSet.Clear #272

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

Conversation

mikhail-dcl
Copy link
Contributor

StructuralSparseArray was improperly cleared as it used Size that refers to the actual number of entities instead of the length of the Entities array itself.

In CommandBuffer, it was leading to leftovers from the previous iteration if it was re-used after Playback resulting in the inconsistent state.

@genaray
Copy link
Owner

genaray commented May 9, 2025

Thanks! Merged #273 which fixes the same issue but also adds a unit test :)

@genaray genaray closed this May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants