Skip to content

Commit

Permalink
Explicitly use 0 min_distance.
Browse files Browse the repository at this point in the history
  • Loading branch information
CLIDragon committed Nov 7, 2024
1 parent 1097097 commit 6abaf58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ranged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3169,7 +3169,7 @@ tripoint_bub_ms target_ui::choose_initial_target()

// Try closest practice target
map &here = get_map();
std::optional<tripoint_bub_ms> target_spot = find_point_closest_first( src, range, [this,
std::optional<tripoint_bub_ms> target_spot = find_point_closest_first( src, 0, range, [this,
&here]( const tripoint_bub_ms & pt ) {
return here.tr_at( pt ).id == tr_practice_target && this->you->sees( pt );
} );
Expand Down

0 comments on commit 6abaf58

Please sign in to comment.