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 subtracting overflow in World::defrag #61

Merged
merged 1 commit into from
Dec 23, 2019

Conversation

Veykril
Copy link
Contributor

@Veykril Veykril commented Dec 21, 2019

Fixes #60

Simply moving the let mut last = slice.len() - 1; a few lines down should do the trick given that slice cannot have a len of zero at that point due to the branching return.

@TomGillen TomGillen merged commit 99b7e81 into amethyst:master Dec 23, 2019
@Veykril Veykril deleted the patch-1 branch December 23, 2019 15:01
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.

Panic in World::defrag() after adding entities
2 participants