Skip to content

Commit

Permalink
fix activating food
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT authored and kevingranade committed May 24, 2020
1 parent 7780517 commit f42d449
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7545,6 +7545,10 @@ bool Character::invoke_item( item *used, const std::string &method, const tripoi
} else if( used->is_bionic() || used->is_deployable() || method == "place_trap" ) {
i_rem( used );
return true;
} else if( used->is_comestible() ) {
const bool ret = consume_effects( *used );
used->charges -= charges_used;
return ret;
}

return false;
Expand Down

0 comments on commit f42d449

Please sign in to comment.