mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 11:19:17 +00:00
nil return for getSmallestMap()
This commit is contained in:
parent
8ef960dad6
commit
7e110a7487
1 changed files with 2 additions and 2 deletions
|
@ -358,7 +358,7 @@ local function getSmallestMap(componentIndex, components)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return s.sparse
|
return s and s.sparse or nil
|
||||||
end
|
end
|
||||||
|
|
||||||
function World.query(world: World, ...: i53): any
|
function World.query(world: World, ...: i53): any
|
||||||
|
@ -579,4 +579,4 @@ return table.freeze({
|
||||||
ON_ADD = ON_ADD,
|
ON_ADD = ON_ADD,
|
||||||
ON_REMOVE = ON_REMOVE,
|
ON_REMOVE = ON_REMOVE,
|
||||||
ON_SET = ON_SET
|
ON_SET = ON_SET
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue