From c0aeb4e1514b06829224369d5ac8c52eeb1dcf69 Mon Sep 17 00:00:00 2001 From: Ukendio Date: Tue, 22 Apr 2025 04:13:25 +0200 Subject: [PATCH] Fix type issues --- jecs.luau | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jecs.luau b/jecs.luau index b7dae17..e7fa379 100644 --- a/jecs.luau +++ b/jecs.luau @@ -1041,7 +1041,7 @@ local function world_clear(world: ecs_world_t, entity: i53) continue end if not ids then - ids = {} + ids = {} :: { [i53]: boolean } end ids[id] = true removal_queued = true @@ -1052,7 +1052,7 @@ local function world_clear(world: ecs_world_t, entity: i53) end if not queue then - queue = {} + queue = {} :: { i53 } end local n = #entities @@ -1242,7 +1242,7 @@ local function world_delete(world: ecs_world_t, entity: i53) break else if not ids then - ids = {} + ids = {} :: { [i53]: boolean } end ids[id] = true removal_queued = true @@ -1253,7 +1253,7 @@ local function world_delete(world: ecs_world_t, entity: i53) continue end if not children then - children = {} + children = {} :: { i53 } end local n = #entities table.move(entities, 1, n, count + 1, children)