From 253c2ca87a9694fb1221b278ee685f2ce2bbcf0b Mon Sep 17 00:00:00 2001 From: Austin Rude Date: Wed, 15 Dec 2021 12:10:17 -0700 Subject: [PATCH] Use allocator.dupe() instead of std.mem.dupe() --- zig-ecs/src/ecs/registry.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zig-ecs/src/ecs/registry.zig b/zig-ecs/src/ecs/registry.zig index 2ce4895..8ff9942 100644 --- a/zig-ecs/src/ecs/registry.zig +++ b/zig-ecs/src/ecs/registry.zig @@ -59,9 +59,9 @@ pub const Registry = struct { if (owned.len == 0) { group_data.entity_set = SparseSet(Entity).init(allocator); } - group_data.owned = std.mem.dupe(allocator, u32, owned) catch unreachable; - group_data.include = std.mem.dupe(allocator, u32, include) catch unreachable; - group_data.exclude = std.mem.dupe(allocator, u32, exclude) catch unreachable; + group_data.owned = allocator.dupe(u32, owned) catch unreachable; + group_data.include = allocator.dupe(u32, include) catch unreachable; + group_data.exclude = allocator.dupe(u32, exclude) catch unreachable; group_data.registry = registry; group_data.current = 0;