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

Eat crash hotfix #40323

Merged
merged 1 commit into from
May 8, 2020
Merged

Conversation

KorGgenT
Copy link
Member

@KorGgenT KorGgenT commented May 8, 2020

Summary

SUMMARY: None

Purpose of change

This is a hotfix related to the crash in #40268 but it does not fix the underlying issue.

Describe the solution

I added a debug message in the finish function for consumption when the item_location has lost its pointer, which returns early and cancels the activity. This makes the game no longer seg fault, but you still cannot eat an item via the inventory screen. I couldn't figure out exactly why the activity loses track of the item_location.

Describe alternatives you've considered

Testing

image
A debug message and bailing out of the activity is significantly better than a crash imo.

Additional context

@KorGgenT KorGgenT added <Crash / Freeze> Fatal bug that results in hangs or crashes. <Bugfix> This is a fix for a bug (or closes open issue) labels May 8, 2020
@kevingranade kevingranade merged commit 97e3499 into CleverRaven:master May 8, 2020
@KorGgenT KorGgenT deleted the fix-consume-crash branch August 13, 2020 04:24
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) <Crash / Freeze> Fatal bug that results in hangs or crashes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants