Skip to content

Commit

Permalink
Merge pull request #37871 from Ramza13/auto_forage
Browse files Browse the repository at this point in the history
Fix dangerous pickups and auto forage not working together
  • Loading branch information
ZhilkinSerg authored Feb 10, 2020
2 parents 1d0d809 + 4e4f579 commit 0a401c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ static void handle_harvest( player &p, const std::string &itemid, bool force_dro
{
item harvest = item( itemid );
if( !force_drop && p.can_pickVolume( harvest, true ) &&
p.can_pickWeight( harvest, true ) ) {
p.can_pickWeight( harvest, !get_option<bool>( "DANGEROUS_PICKUPS" ) ) ) {
p.i_add( harvest );
p.add_msg_if_player( _( "You harvest: %s." ), harvest.tname() );
} else {
Expand Down

0 comments on commit 0a401c8

Please sign in to comment.