Open BaumgeistOne opened 2 months ago
Tested on a more vanilla CDDA, got segfault as well. Placed antiseptic into tank, damaged self, tried to 's'iphon antiseptic, consumed it, segfault. crash.zip TESTINGFIVE-trimmed.tar.gz
Failed to repeat from "CoroNaut's save. Instead I get an error report (and no PR is currently marked as linked to this issue): DEBUG : Item location/name to be consumed should not be null.
FUNCTION : finish FILE : C:\Cataclysm-DDA\src\activity_actor.cpp LINE : 3245 VERSION : 0.G-12039-g2473620ec6 and nothing is removed from the tank, nor is the wound I debugged in the PC disinfected.
It's the same commit as in #76425 that's responsible for this (717630e2cfc00dd58d1ef3dd3de40e4f63cf2618). But in this case the actual issue is that vehicle item_location
s are only valid for CARGO
vehicle parts. Liquid tanks work differently and can't use them.
So actually the above isn't exactly false, but even without that issue there is a crash, because the first aid activity always assumes the healing item you use is on the character, so it can't handle antiseptic coming from a vehicle tank currently.
Describe the bug
Why should antiseptic take up precious cargo space, when it could be stored in a vehicle tank? So I did exactly that. But since it does not show up in the "use meds" action anymore, I tried to siphon it, and when prompted what to do with the liquid, I selected "consume". Which then crashed the game.
Attach save file
The Collector-trimmed.tar.gz
Steps to reproduce
Expected behavior
"Consuming" the antiseptic after siphoning it should work.
Screenshots
No response
Versions and configuration
Additional context
CddaCrashDebug.zip