Skip to content

Commit

Permalink
Prevent panic when collect_garbage flushes self.cur
Browse files Browse the repository at this point in the history
fixes #21
  • Loading branch information
hugoledoux committed Oct 7, 2024
1 parent 6d1bc49 commit 178c152
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1966,6 +1966,7 @@ impl Triangulation {
offset += 1;
}
self.removed_indices.clear();
self.cur = 1;
}
}

Expand Down

0 comments on commit 178c152

Please sign in to comment.