From 3eb1f42e8e19f8a2e2910c0ec3d73b382e473679 Mon Sep 17 00:00:00 2001 From: Hirek193 Date: Sat, 3 Oct 2026 17:34:48 +0200 Subject: [PATCH] fix(editor): rename lambda clashing with the windows far macro --- application/editormodetrack.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/editormodetrack.cpp b/application/editormodetrack.cpp index e8adfae1..db67af75 100644 --- a/application/editormodetrack.cpp +++ b/application/editormodetrack.cpp @@ -3090,9 +3090,9 @@ bool editor_mode::start_curve_fit(editor_track::straight const &Line) return false; if (state.fit_before.reversals != 0 || state.fit_after.reversals != 0) return false; - auto const far = [](editor_track::curve const &Curve, glm::dvec3 const &Joint) { return editor_track::touches(*Curve.from, Joint) ? Curve.to : Curve.from; }; - m_route.from = far(state.fit_before, Line.start); - m_route.to = far(state.fit_after, Line.end); + auto const far_end = [](editor_track::curve const &Curve, glm::dvec3 const &Joint) { return editor_track::touches(*Curve.from, Joint) ? Curve.to : Curve.from; }; + m_route.from = far_end(state.fit_before, Line.start); + m_route.to = far_end(state.fit_after, Line.end); route_reset(); if (m_route.chain.tracks.empty()) return false;