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

minimal: Fix crash due to assertion fail #8511

Merged
merged 2 commits into from May 3, 2019

Conversation

ClobberXD
Copy link
Contributor

Closes #8510 (thanks to @DS-Minetest for reporting the crash). Tested; works as it should.

The assertion failed because the third set_hp call in run_hpchangereason_tests set the same HP value, and on_hpchange callbacks weren't called.
@rubenwardy rubenwardy added the Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines label May 2, 2019
@paramat
Copy link
Contributor

paramat commented May 2, 2019

Fix is fine, unsure about the codestyle change. I'm not sure if it is our policy to change arguments to '_', code seems clearer with all arguments included.

@paramat
Copy link
Contributor

paramat commented May 3, 2019

I seem to remember in MTG we are actually adding arguments back in and removing '_', because it helps by making clear what arguments are available.
I'm +1 for the PR and will merge it if that codestyle change is removed, otherwise i need to be convinced it's useful.

@sfan5 sfan5 merged commit 96f250e into minetest:master May 3, 2019
@ClobberXD ClobberXD deleted the fix_for_failed_assertion_minimal branch May 3, 2019 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix 🐛 PRs that fix a bug One approval ✅ ◻️ Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimal crash with enabled damage
5 participants