diff --git a/src/item_pocket.cpp b/src/item_pocket.cpp index 634afc6ab2fbb..665883cc52212 100644 --- a/src/item_pocket.cpp +++ b/src/item_pocket.cpp @@ -997,6 +997,11 @@ void item_pocket::favorite_info( std::vector &info ) ret_val item_pocket::can_contain( const item &it ) const { + if( it.has_flag( flag_NO_UNWIELD ) ) { + return ret_val::make_failure( + contain_code::ERR_MOD, _( "cannot unwield item" ) ); + } + // To prevent debugmsg. Casings can only be inserted in a magazine during firing. if( data->type == item_pocket::pocket_type::MAGAZINE && it.has_flag( flag_CASING ) ) { return ret_val::make_success();