fix invokation of sort function

master
Stefan Partheymüller 2 years ago
parent 9bbff920bb
commit 42b2a57d1c

@ -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 { pub fn sort(self: *Registry, comptime T: type, comptime lessThan: *const fn (void, T, T) bool) void {
const comp = self.assure(T); const comp = self.assure(T);
std.debug.assert(comp.super == 0); 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. /// Checks whether the given component belongs to any group. If so, it is not sortable directly.

Loading…
Cancel
Save