From 8fdb7c9c94c15f24352fb395cbb5f2134c681936 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 31 Mar 2022 18:32:59 -0500 Subject: [PATCH] bugfix with array iterator remove --- core/container/iter.onyx | 1 + 1 file changed, 1 insertion(+) diff --git a/core/container/iter.onyx b/core/container/iter.onyx index 024a3873..a2c6813d 100644 --- a/core/container/iter.onyx +++ b/core/container/iter.onyx @@ -535,6 +535,7 @@ from_array :: (arr: [] $T) -> Iterator(^T) { // been incremented by the time this element calls #remove. array :: package core.array array.delete(arr, current - 1); + current -= 1; } return .{ -- 2.25.1