Skip to content

Commit

Permalink
Merge pull request CleverRaven#36477 from Ramza13/trading_weapon
Browse files Browse the repository at this point in the history
Fix trading with npc destroying wielded weapon
  • Loading branch information
ZhilkinSerg authored Dec 27, 2019
2 parents eed5688 + 81b40a4 commit 50c0b67
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/npctrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ void npc_trading::transfer_items( std::vector<item_pricing> &stuff, player &give
}

if( ip.loc.where() == item_location::type::character ) {
if( gift.typeId() == giver.weapon.typeId() ) {
giver.remove_weapon();
}
if( ip.charges > 0 ) {
giver.use_charges( gift.typeId(), charges );
} else if( ip.count > 0 ) {
Expand Down

0 comments on commit 50c0b67

Please sign in to comment.