From 7666a483b58cee13d711fa3362e395979abab9d4 Mon Sep 17 00:00:00 2001 From: CLIDragon <84266961+CLIDragon@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:09:45 +1000 Subject: [PATCH] Include point.h --- src/monmove.cpp | 1 + src/ranged.cpp | 2 +- src/vehicle.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/monmove.cpp b/src/monmove.cpp index 5c49e425a29be..1940fc4cacb94 100644 --- a/src/monmove.cpp +++ b/src/monmove.cpp @@ -40,6 +40,7 @@ #include "options.h" #include "pathfinding.h" #include "pimpl.h" +#include "point.h" #include "rng.h" #include "scent_map.h" #include "sounds.h" diff --git a/src/ranged.cpp b/src/ranged.cpp index 7a0089559e132..2c344e28371a2 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(); - const std::optional target_spot = find_point_closest_first( src, range, [this, + std::optional target_spot = find_point_closest_first( src, range, [this, &here]( const tripoint & pt ) { return here.tr_at( pt ).id == tr_practice_target && this->you->sees( pt ); } ); diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 4f8cb2b23b554..2e34627ae2680 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -62,6 +62,7 @@ #include "options.h" #include "output.h" #include "overmapbuffer.h" +#include "point.h" #include "pimpl.h" #include "player_activity.h" #include "pocket_type.h"