Skip to content

Commit

Permalink
inv_col: fix ground items stacking with veh items (#56777)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei8l authored Apr 19, 2022
1 parent 6bdb84d commit 6deba6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/inventory_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,8 @@ void inventory_column::add_entry( const inventory_entry &entry )
}
item_location found_entry_item = entry.locations.front();
// this would be much simpler if item::parent_item() didn't call debugmsg
return entry_item.position() == found_entry_item.position() and
return entry_item.where() == found_entry_item.where() and
entry_item.position() == found_entry_item.position() and
( ( !entry_item.has_parent() and !found_entry_item.has_parent() ) ||
( entry_item.has_parent() and found_entry_item.has_parent() and
entry_item.parent_item() == found_entry_item.parent_item() ) ) and
Expand Down

0 comments on commit 6deba6c

Please sign in to comment.