Skip to content

Commit

Permalink
Update src/crafting.cpp
Browse files Browse the repository at this point in the history
Co-Authored-By: ZhilkinSerg <ZhilkinSerg@users.noreply.github.com>
  • Loading branch information
SeventhSandwich and ZhilkinSerg authored Feb 6, 2020
1 parent 7339e22 commit 88043ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crafting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 88043ab

Please sign in to comment.