From 39af857bdc54ed8f7f189d5b458e0e650d7d3318 Mon Sep 17 00:00:00 2001 From: Jonathan Bro Date: Fri, 25 Jun 2021 23:41:06 +0900 Subject: [PATCH] Resolve use of undeclared identifier 'slice' error --- zig-ecs/src/ecs/utils.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zig-ecs/src/ecs/utils.zig b/zig-ecs/src/ecs/utils.zig index 44e99a9..a3a3510 100644 --- a/zig-ecs/src/ecs/utils.zig +++ b/zig-ecs/src/ecs/utils.zig @@ -43,7 +43,7 @@ pub fn ReverseSliceIterator(comptime T: type) type { } pub fn reset(self: *@This()) void { - self.index = slice.len; + self.index = self.slice.len; } }; }