diff --git a/src/activity_item_handling.cpp b/src/activity_item_handling.cpp index ad9047958e900..3c9e1a01a1b07 100644 --- a/src/activity_item_handling.cpp +++ b/src/activity_item_handling.cpp @@ -3519,7 +3519,7 @@ int get_auto_consume_moves( Character &you, const bool food ) if( best_comestible ) { //The moves it takes you to walk there and back. int consume_moves = 2 * you.run_cost( 100, false ) * std::max( rl_dist( you.pos(), - here.getlocal( best_comestible.position() ) ), 1 ); + best_comestible.position() ), 1 ); consume_moves += to_moves( you.get_consume_time( *best_comestible ) ); you.consume( best_comestible );