nil return for getSmallestMap()

This commit is contained in:
Shane 2024-04-29 17:56:57 -07:00 committed by GitHub
parent 8ef960dad6
commit 7e110a7487
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -358,7 +358,7 @@ local function getSmallestMap(componentIndex, components)
end
end
return s.sparse
return s and s.sparse or nil
end
function World.query(world: World, ...: i53): any
@ -579,4 +579,4 @@ return table.freeze({
ON_ADD = ON_ADD,
ON_REMOVE = ON_REMOVE,
ON_SET = ON_SET
})
})