-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 #77500 - Repeatable crash when interacting with an item #77551
Conversation
fb4c7f3
to
a4ed07f
Compare
What's the best way for me to test this after compiling it? |
I would reproduce the crash in the linked issue without the patch consistently, then apply the patch and see if it still happens. |
I have compiled and tested this with my own save that is enjoying the same issue. #77551 does not resolve #77500 for me. The same behavior of attempting to "pick up, examine, autohaul, use the item look around menu with, or use AIM on the pile of items" results in segfault. Crash log for reference:
Can provide additional save file if desired. Cheers |
@RadioAndrea I don't know your workflow but your log indicates that you are using the release binary and not a compiled version. I've tested this now with the save from the linked issue and it resolves the crash. |
RIP Sorry about that. It's my first time building cata from source, I must have done something wrong! Cheers! |
I checked it again, yes I messed up and used old executable. Showing as fixed in this new revision. My 12 3L jars of Cherries (Fresh) (Sealed) no longer destroy the game. Thank you for your efforts! |
Summary
Bugfixes "Fix a crash when examining or eating certain food items"
Purpose of change
Describe the solution
Check if our comestible data is nullptr before trying to access it
Also noticed I set
must_be_food
incorrectly, by checking if the vitamins were empty. Reversed that,must_be_food
is set to true if the vitamins are not empty.Describe alternatives you've considered
Testing
Should work but I haven't personally tested it
Additional context