From 7e110a74870d105c3b11cb9fb5ce33f6b7d79ca8 Mon Sep 17 00:00:00 2001 From: Shane <58125798+outofbearspace@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:56:57 -0700 Subject: [PATCH] nil return for getSmallestMap() --- lib/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +})