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 handling non-food liquids #28700

Merged

Conversation

Projects
None yet
4 participants
@Hirmuolio
Copy link
Contributor

commented Mar 14, 2019

Summary

SUMMARY: Bugfixes "Fix crash when handling non-food liquids"

Fixes #28704

Purpose of change

When you tried to put non food liquid into a container that was not empty the game tried to average their temperatures.

But since they were not food and had no temperature data at all this resulted the game to crash.

Describe the solution

Check if the container has food in it before trying to handle its contents as food.

Describe alternatives you've considered

Additional context

Hirmuolio added some commits Mar 14, 2019

@Hirmuolio Hirmuolio changed the title Hirmuolio temperature patch 1 Fix crash when handling non-food liquids Mar 14, 2019

@kevingranade kevingranade merged commit e545fa7 into CleverRaven:master Mar 15, 2019

3 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
gorgon-ghprb Build finished.
Details

@Hirmuolio Hirmuolio deleted the Hirmuolio:Hirmuolio-temperature-patch-1 branch Mar 15, 2019

@kevingranade

This comment has been minimized.

Copy link
Member

commented Mar 15, 2019

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/crash-while-siphoning-fuel/19234/2

@kevingranade

This comment has been minimized.

Copy link
Member

commented Mar 15, 2019

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/crashes-bugs-etc/19233/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.