Sewing related items voids charges reloaded and unloaded from them #40246
Labels
<Bug>
This needs to be fixed
Items: Magazines
Ammo holding items and objects.
(S3 - Duplicate)
Bug that is duplicate of another one
Describe the bug
Items I've used with the sewing quality has a nasty bug that completely removes thread put into them for repairing items. And with the Sewing Kits I spawn in with their stock 50 thread, it gives me a 'none' item, effectively voiding the charges pulled out of them.
Steps To Reproduce
[Reloading charges]
2a. Reload the sewing tool with thread.
3a. See that the value is left unchanged, totally destroys your thread.
[Unloading charges]
2b. Attempt unload the stock charges of a Sewing Kit/Tailor's Kit.
3b. Sewing tool does not return thread, instead gives a 'None' item that is absolutely nothing, voiding charges again.
Expected behavior
I'm not sure. It probably has something to do with nested inventory, but that's the first thing that comes to mind.
Versions and configuration
Additional context
This is the log the game gave me with I tried to unload thread from a Tailor's Kit.
DEBUG : cannot determine reload cost as none is neither ammo or magazine
FUNCTION : int player::item_reload_cost(const item&, const item&, int) const
FILE : src/player.cpp
LINE : 2894
The text was updated successfully, but these errors were encountered: