Skip to content

Commit

Permalink
Merge pull request CleverRaven#68113 from inogenous/bugfix-inserting-…
Browse files Browse the repository at this point in the history
…items-into-containers-in-corpses

Bugfix: AIM: insert items into container in corpse
  • Loading branch information
Maleclypse authored Sep 12, 2023
2 parents 3ead888 + 7b1e83e commit 398e915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/advanced_inv_pane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ void advanced_inventory_pane::add_items_from_area( advanced_inv_area &square,
if( it->is_corpse() ) {
for( item *loot : it->all_items_top( item_pocket::pocket_type::CONTAINER ) ) {
if( !is_filtered( *loot ) ) {
advanced_inv_listitem aim_item( item_location( loc_cursor, loot ), 0, 1, square.id,
is_in_vehicle );
advanced_inv_listitem aim_item( item_location( item_location( loc_cursor, it ), loot ),
0, 1, square.id, is_in_vehicle );
square.volume += aim_item.volume;
square.weight += aim_item.weight;
items.push_back( aim_item );
Expand Down

0 comments on commit 398e915

Please sign in to comment.