Skip to content

Commit

Permalink
Merge pull request #67340 from mqrause/overflow_comps
Browse files Browse the repository at this point in the history
Overflow crafting components before consuming them
  • Loading branch information
Maleclypse authored Aug 1, 2023
2 parents e6f7407 + 7a2f479 commit 427fe0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/crafting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,8 @@ std::list<item> Character::consume_items( map &m, const comp_selection<item_comp
}
for( item &it : ret ) {
it.spill_contents( *this );
// todo: make a proper solution that overflows with the proper item_location
it.overflow( pos() );
}
empty_buckets( *this );
return ret;
Expand Down

0 comments on commit 427fe0b

Please sign in to comment.