From 7339e225a2e05491d4ae3790cf5cb472bee44e43 Mon Sep 17 00:00:00 2001 From: SeventhSandwich Date: Wed, 5 Feb 2020 19:57:41 -0500 Subject: [PATCH] Update src/crafting.cpp Co-Authored-By: ZhilkinSerg --- src/crafting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crafting.cpp b/src/crafting.cpp index c94855dbe507b..ead01ee757364 100644 --- a/src/crafting.cpp +++ b/src/crafting.cpp @@ -2025,7 +2025,7 @@ bool player::disassemble( item_location target, bool interactive ) activity.targets.emplace_back( std::move( target ) ); activity.str_values.push_back( r.result() ); // Unused position attribute used to store ammo to disassemble - obj.charges ); // Unused position attribute used to store ammo to disassemble + activity.position = std::min( num_dis, obj.charges ); return true; }