Schedule causes a panic when run criteria returns NoAndCheckAgain #3144
Labels
A-ECS
Entities, components, systems, and events
C-Bug
An unexpected or incorrect behavior
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Uh oh!
There was an error while loading. Please reload this page.
Bevy version
0.5.0, looking at the code still happens at
main
Operating system & version
N/A will happen on all Operating Systems
What you did
Had a run criteria returning
NoAndCheckAgain
in some cases on a ScheduleWhat you expected to happen
I expected the run criteria to be reevaluated immediately
What actually happened
The code panicked
Additional information
The panic is raised in bevy_ecs/src/schedule/mod.rs with text "
NoAndCheckAgain
would loop infinitely in this situation.". I believe that this is an incorrect assumption as the state may be modified (in my case I change a resource) by the run criteria and go down a different code path on the rerun of it. This would make some code easier to read.The text was updated successfully, but these errors were encountered: