From e226ce72acee2876dedfe2b219b2bfca1ccfa18f Mon Sep 17 00:00:00 2001 From: KorGgenT Date: Sat, 23 May 2020 23:06:26 -0400 Subject: [PATCH] fix activating food --- src/character.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/character.cpp b/src/character.cpp index 7391256bb63b2..e0dbafbd477af 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -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;