From 88043abbbbc04464162a5d5078b32a52fafffb1e Mon Sep 17 00:00:00 2001 From: SeventhSandwich Date: Wed, 5 Feb 2020 19:57:54 -0500 Subject: [PATCH] Update src/crafting.cpp Co-Authored-By: ZhilkinSerg --- src/crafting.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crafting.cpp b/src/crafting.cpp index ead01ee757364..17088dc6dfd7c 100644 --- a/src/crafting.cpp +++ b/src/crafting.cpp @@ -2175,7 +2175,8 @@ void player::complete_disassemble( item_location &target, const recipe &dis ) if( dis_item.count_by_charges() && dis.has_flag( flag_UNCRAFT_SINGLE_CHARGE ) ) { compcount *= std::min( dis_item.charges, dis.create_result().charges ); } - if (dis_item.is_ammo()) { //If ammo, overwrite component count with selected quantity of ammo + //If ammo, overwrite component count with selected quantity of ammo + if( dis_item.is_ammo() ) { compcount *= activity.position; } const bool is_liquid = newit.made_of( LIQUID );