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

Segfault fix #1697

Merged
merged 3 commits into from
Mar 11, 2021
Merged

Segfault fix #1697

merged 3 commits into from
Mar 11, 2021

Conversation

mbernard2
Copy link
Contributor

@mbernard2 mbernard2 commented Mar 10, 2021

Sometimes, objects being deleted from a sector (e.g. exploding bombs) remained referenced in CollisionObjects and Tilemaps and were accessed despite not existing (so CollisionObject::propagate_movement and others were called on gibberish data). That's what caused the segfault described in #1695.

This fix works but it's not really nice. It will be improved as part of #1552, for now I don't really have time.

Sometimes, objects being deleted from a sector (e.g. exploding bombs) remained referenced in CollisionObjects and were accessed despite not existing.

The fix works but is not really nice. It will be improved as part of a larger work on code quality.

Closes SuperTux#1695
@tobbi tobbi merged commit b26ce45 into SuperTux:master Mar 11, 2021
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