From 31a322b8fb6ed9aff082aa7250cca918b18a56f0 Mon Sep 17 00:00:00 2001 From: CLIDragon <84266961+CLIDragon@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:56:34 +1000 Subject: [PATCH] Explicitly use 0 min_distance. --- src/ranged.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ranged.cpp b/src/ranged.cpp index 5de099665c374..1ea91c16c6332 100644 --- a/src/ranged.cpp +++ b/src/ranged.cpp @@ -3164,7 +3164,7 @@ tripoint target_ui::choose_initial_target() // Try closest practice target map &here = get_map(); - std::optional target_spot = find_point_closest_first( src, range, [this, + std::optional target_spot = find_point_closest_first( src, 0, range, [this, &here]( const tripoint & pt ) { return here.tr_at( pt ).id == tr_practice_target && this->you->sees( pt ); } );