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 crash when repairing items #51837

Merged
merged 2 commits into from
Sep 24, 2021
Merged

Conversation

svenstaro
Copy link
Contributor

@svenstaro svenstaro commented Sep 24, 2021

Summary

Bugfixes "Crash when repairing items"

Purpose of change

This fixes #51828 and also fixes #51674.

Describe the solution

This was caused by #51600 which pops the current target if cannot_continue_repair is true.
However, this popped target is later used as fix_location (it's a reference set earlier).

Describe alternatives you've considered

None, fix seems straight forward.

Testing

Before: Repair something and watch it crash.
Now: Repair something and it'll work.

Additional context

@ferociousdork seemed to come to the same conclusion: #51828 (comment)

This was caused by CleverRaven#51600 which pops the current target if cannot_continue_repair is true.
However, this popped target is later used as fix_location (it's a reference set earlier).

This also fixes CleverRaven#51828 and CleverRaven#51674.
@Maleclypse Maleclypse added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` labels Sep 24, 2021
@dseguin
Copy link
Member

dseguin commented Sep 24, 2021

Thank you for fixing that! I should really stop making these silly mistakes.

@kevingranade kevingranade merged commit c14e89d into CleverRaven:master Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code`
Projects
None yet
4 participants