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

Fix archetypes_generation being incorrectly updated for systems #383

Merged
merged 1 commit into from
Aug 30, 2020

Conversation

BoxyUwU
Copy link
Member

@BoxyUwU BoxyUwU commented Aug 28, 2020

The issue for this (#294) mentioned query systems not having this issue but it turns out they have the same issue, except instead of panicking they'll just run anyway and let you have multiple mutable borrows on the same components. This PR fixes it for both types of systems but it's probably worth investigating why one panics and the other is just UB.

resolves #294
resolves #259

@BoxyUwU
Copy link
Member Author

BoxyUwU commented Aug 28, 2020

Oh hey this also resolves #259

@karroffel karroffel added C-Bug An unexpected or incorrect behavior A-ECS Entities, components, systems, and events labels Aug 28, 2020
@BoxyUwU BoxyUwU changed the title Fix archetypes_generation being incorrectly updated for systems (#294) Fix archetypes_generation being incorrectly updated for systems Aug 28, 2020
@mrk-its
Copy link
Member

mrk-its commented Aug 29, 2020

I've ran recently into that and this PR works for me. Good job! @cart could you take a look?

@cart
Copy link
Member

cart commented Aug 29, 2020

Taking a look now!

@cart
Copy link
Member

cart commented Aug 30, 2020

This makes sense to me. Nice catch!

@cart cart merged commit 3efbaca into bevyengine:master Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Bug An unexpected or incorrect behavior
Projects
None yet
4 participants