From 178c152b1c15430557cf50f53d47693b803a1347 Mon Sep 17 00:00:00 2001 From: Hugo Ledoux Date: Mon, 7 Oct 2024 15:17:54 +0200 Subject: [PATCH] Prevent panic when collect_garbage flushes self.cur fixes #21 --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 80d6d64..1b16967 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -1966,6 +1966,7 @@ impl Triangulation { offset += 1; } self.removed_indices.clear(); + self.cur = 1; } }