Skip to content

Commit

Permalink
Fix item duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Trioct committed Jan 21, 2020
1 parent 71ee31c commit 68b27a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pickup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,10 @@ bool pick_one_up( item_location &loc, int quantity, bool &got_water, bool &offer
case WIELD:
if( wield_check.success() ) {
//using original item, possibly modifying it
picked_up = u.wield( newit );
picked_up = u.wield( it );
if( picked_up ) {
u.weapon.charges = newit.charges;
}
if( u.weapon.invlet ) {
add_msg( m_info, _( "Wielding %c - %s" ), u.weapon.invlet,
u.weapon.display_name() );
Expand Down

0 comments on commit 68b27a7

Please sign in to comment.