From 07322063a93058988ca7e78c8e9611f90c1b6ee2 Mon Sep 17 00:00:00 2001 From: Nikolas Schwarz Date: Thu, 18 Apr 2024 14:18:10 +0200 Subject: [PATCH] Fixed bug that caused an infinite loop, compare https://github.com/delfrrr/delaunator-cpp/pull/32 --- src/lib/Delaunator2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Delaunator2D.cpp b/src/lib/Delaunator2D.cpp index eb7ddd7d..da6fd5d2 100644 --- a/src/lib/Delaunator2D.cpp +++ b/src/lib/Delaunator2D.cpp @@ -452,7 +452,7 @@ std::size_t Delaunator2D::legalize(std::size_t a) { hull_tri[e] = a; break; } - e = hull_next[e]; + e = hull_prev[e]; } while (e != hull_start); } link(a, hbl);