From 5189297553c027dab0a1ce4cab9cf02a7e1d5a1f Mon Sep 17 00:00:00 2001 From: Valiant Date: Wed, 25 Dec 2019 11:23:47 +0400 Subject: [PATCH] Don't remove non-unwieldable weapons when limb breaks --- src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.cpp b/src/player.cpp index f4442dbf39833..f4aae4b9a3969 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -1923,7 +1923,7 @@ void player::apply_damage( Creature *source, body_part hurt, int dam, const bool g->events().send( getID(), dam_to_bodypart ); if( hp_cur[hurtpart] <= 0 && ( source == nullptr || !source->is_hallucination() ) ) { - if( !weapon.is_null() && !can_wield( weapon ).success() ) { + if( !weapon.is_null() && can_unwield( weapon ).success() ) { put_into_vehicle_or_drop( *this, item_drop_reason::tumbling, { weapon } ); i_rem( &weapon ); }