From 81b40a471550d08e88dce271ce70d3cf213d8e2a Mon Sep 17 00:00:00 2001 From: Ramza13 <52087122+Ramza13@users.noreply.github.com> Date: Thu, 26 Dec 2019 16:07:33 -0500 Subject: [PATCH] Removed unneeded code destroying weapon --- src/npctrade.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/npctrade.cpp b/src/npctrade.cpp index 2f7e6c1c6cd34..5ad8634d524e3 100644 --- a/src/npctrade.cpp +++ b/src/npctrade.cpp @@ -63,9 +63,6 @@ void npc_trading::transfer_items( std::vector &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 ) {