diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-05-19 13:26:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-19 13:26:15 +0200 |
| commit | d8093dd27363384c7196dbff7e485f0df2b11894 (patch) | |
| tree | b6bf869a55440a666f4bcc17d5e9cd93ff26dbdc /core/math/a_star.cpp | |
| parent | 71c40ff4da85a4770958533cdc65f2c9f7ddeaff (diff) | |
| parent | 900c676b0282bed83d00834e3c280ac89c2bc94d (diff) | |
| download | redot-engine-d8093dd27363384c7196dbff7e485f0df2b11894.tar.gz | |
Merge pull request #61173 from LightningAA/update-set-iterators
Diffstat (limited to 'core/math/a_star.cpp')
| -rw-r--r-- | core/math/a_star.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/a_star.cpp b/core/math/a_star.cpp index a3ee259030..29aa959e54 100644 --- a/core/math/a_star.cpp +++ b/core/math/a_star.cpp @@ -293,10 +293,10 @@ Vector3 AStar3D::get_closest_position_in_segment(const Vector3 &p_point) const { real_t closest_dist = 1e20; Vector3 closest_point; - for (const RBSet<Segment>::Element *E = segments.front(); E; E = E->next()) { + for (const Segment &E : segments) { Point *from_point = nullptr, *to_point = nullptr; - points.lookup(E->get().u, from_point); - points.lookup(E->get().v, to_point); + points.lookup(E.u, from_point); + points.lookup(E.v, to_point); if (!(from_point->enabled && to_point->enabled)) { continue; |
