From 42b2a57d1c096ac6893e2761de51b9b1af539fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Partheym=C3=BCller?= Date: Wed, 8 Feb 2023 11:36:23 +0100 Subject: [PATCH] fix invokation of sort function --- zig-ecs/src/ecs/registry.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zig-ecs/src/ecs/registry.zig b/zig-ecs/src/ecs/registry.zig index 72fbf68..3fab6ff 100644 --- a/zig-ecs/src/ecs/registry.zig +++ b/zig-ecs/src/ecs/registry.zig @@ -425,7 +425,7 @@ pub const Registry = struct { pub fn sort(self: *Registry, comptime T: type, comptime lessThan: *const fn (void, T, T) bool) void { const comp = self.assure(T); std.debug.assert(comp.super == 0); - comp.sort(T, lessThan); + comp.sort(T, comp.len(), {}, lessThan); } /// Checks whether the given component belongs to any group. If so, it is not sortable directly.