Skip to content

Commit

Permalink
Merge pull request #41276 from martinrhan/branch_bugfix_wield
Browse files Browse the repository at this point in the history
Bugfix for cancelling unwielding when wielding an item and has item in hand
  • Loading branch information
ZhilkinSerg authored Jun 14, 2020
2 parents f3d4575 + 93809d7 commit 5e807d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8957,7 +8957,9 @@ void game::wield( item_location loc )
add_msg( m_info, "%s", ret.c_str() );
}

u.unwield();
if( !u.unwield() ) {
return;
}

if( is_unwielding ) {
if( !u.martial_arts_data.selected_is_none() ) {
Expand Down

0 comments on commit 5e807d8

Please sign in to comment.