Skip to content

Commit

Permalink
Merge pull request #47789 from Qrox/wield
Browse files Browse the repository at this point in the history
Always list wielded item in AIM worn panel
  • Loading branch information
ZhilkinSerg authored Feb 28, 2021
2 parents e6f6ee5 + 96d25fd commit 0c24435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/advanced_inv_pane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void advanced_inventory_pane::add_items_from_area( advanced_inv_area &square,
square.volume = 0_ml;
square.weight = 0_gram;

if( u.weapon.is_container() ) {
if( !u.weapon.is_null() ) {
advanced_inv_listitem it( item_location( u, &u.weapon ), 0, 1, square.id, false );
if( !is_filtered( *it.items.front() ) ) {
square.volume += it.volume;
Expand Down

0 comments on commit 0c24435

Please sign in to comment.