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"