Error in loading_screen.rs example #16792
Labels
C-Bug
An unexpected or incorrect behavior
C-Examples
An addition or correction to our examples
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Uncontroversial
This work is generally agreed upon
Bevy version
v0.15.0
What went wrong
I think there is an error in the example on line 220.
If there are two elements in the array and the zero element is deleted on the first iteration, then on the second iteration an attempt to delete the element with index 1 will end with a panic because the deletion of the zero element caused a shift.
The text was updated successfully, but these errors were encountered: