mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Revert "nil return for getSmallestMap() (#5)"
This reverts commit 12287b12ef
.
This commit is contained in:
parent
12287b12ef
commit
c0b710d2c2
1 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ local function onNotifyAdd(world, archetype, otherArchetype, row: number, added:
|
|||
end
|
||||
|
||||
|
||||
export type World = typeof(World.new())
|
||||
type World = typeof(World.new())
|
||||
|
||||
local function ensureArchetype(world: World, types, prev)
|
||||
if #types < 1 then
|
||||
|
@ -360,7 +360,7 @@ local function getSmallestMap(componentIndex, components)
|
|||
end
|
||||
end
|
||||
|
||||
return s and s.sparse or nil
|
||||
return s.sparse
|
||||
end
|
||||
|
||||
function World.query(world: World, ...: i53): any
|
||||
|
@ -581,4 +581,4 @@ return table.freeze({
|
|||
ON_ADD = ON_ADD,
|
||||
ON_REMOVE = ON_REMOVE,
|
||||
ON_SET = ON_SET
|
||||
})
|
||||
})
|
Loading…
Reference in a new issue