From 41ac9626d0be910c29301840f9d9b90dcdad8a0b Mon Sep 17 00:00:00 2001 From: randomdude7332 Date: Fri, 15 Jan 2021 10:32:06 +0300 Subject: [PATCH] fix infinite loop in cureLocalIntersections --- include/mapbox/earcut.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapbox/earcut.hpp b/include/mapbox/earcut.hpp index 6dc7e5c..e11d522 100644 --- a/include/mapbox/earcut.hpp +++ b/include/mapbox/earcut.hpp @@ -381,8 +381,8 @@ Earcut::cureLocalIntersections(Node* start) { indices.emplace_back(b->i); // remove two nodes involved - removeNode(p); removeNode(p->next); + removeNode(p); p = start = b; }