Skip to content

Commit

Permalink
One more update
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA committed Nov 6, 2024
1 parent 18bb1cc commit f129d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8671,8 +8671,8 @@ bool item::made_of_any_food_components( bool deep_search ) const
for( const std::pair<itype_id, std::vector<item>> pair : components ) {
for( const item &it : pair.second ) {
const auto &maybe_food = it.get_comestible();
bool must_be_food = maybe_food && ( maybe_food->default_nutrition.kcal() > 0 ||
!maybe_food->default_nutrition.vitamins().empty() );
bool must_be_food = maybe_food && ( maybe_food->default_nutrition_read_only().kcal() > 0 ||
!maybe_food->default_nutrition_read_only().vitamins().empty() );
bool has_food_component = false;
if( deep_search && !it.components.empty() ) {
// make true if any component has food values, even if some don't
Expand Down

0 comments on commit f129d53

Please sign in to comment.