From: Brendan Hansen Date: Thu, 31 Mar 2022 23:32:59 +0000 (-0500) Subject: bugfix with array iterator remove X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=8fdb7c9c94c15f24352fb395cbb5f2134c681936;p=onyx.git bugfix with array iterator remove --- 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 .{