mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Fix type issues
This commit is contained in:
parent
6811b6de0e
commit
c0aeb4e151
1 changed files with 4 additions and 4 deletions
|
@ -1041,7 +1041,7 @@ local function world_clear(world: ecs_world_t, entity: i53)
|
||||||
continue
|
continue
|
||||||
end
|
end
|
||||||
if not ids then
|
if not ids then
|
||||||
ids = {}
|
ids = {} :: { [i53]: boolean }
|
||||||
end
|
end
|
||||||
ids[id] = true
|
ids[id] = true
|
||||||
removal_queued = true
|
removal_queued = true
|
||||||
|
@ -1052,7 +1052,7 @@ local function world_clear(world: ecs_world_t, entity: i53)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not queue then
|
if not queue then
|
||||||
queue = {}
|
queue = {} :: { i53 }
|
||||||
end
|
end
|
||||||
|
|
||||||
local n = #entities
|
local n = #entities
|
||||||
|
@ -1242,7 +1242,7 @@ local function world_delete(world: ecs_world_t, entity: i53)
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
if not ids then
|
if not ids then
|
||||||
ids = {}
|
ids = {} :: { [i53]: boolean }
|
||||||
end
|
end
|
||||||
ids[id] = true
|
ids[id] = true
|
||||||
removal_queued = true
|
removal_queued = true
|
||||||
|
@ -1253,7 +1253,7 @@ local function world_delete(world: ecs_world_t, entity: i53)
|
||||||
continue
|
continue
|
||||||
end
|
end
|
||||||
if not children then
|
if not children then
|
||||||
children = {}
|
children = {} :: { i53 }
|
||||||
end
|
end
|
||||||
local n = #entities
|
local n = #entities
|
||||||
table.move(entities, 1, n, count + 1, children)
|
table.move(entities, 1, n, count + 1, children)
|
||||||
|
|
Loading…
Reference in a new issue