diff --git a/lib/init.lua b/lib/init.lua index 6b0dd51..9a51dc7 100644 --- a/lib/init.lua +++ b/lib/init.lua @@ -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 -}) \ No newline at end of file +})