From 4c86b8074b625c67327bcb4e12621d068c30c469 Mon Sep 17 00:00:00 2001 From: gononono64 <96976330+gononono64@users.noreply.github.com> Date: Wed, 26 Feb 2025 01:18:49 -0600 Subject: [PATCH] point 1 for crowley ... 20 for newb --- lib/shared/tables.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/shared/tables.lua b/lib/shared/tables.lua index 148db7f..26c5888 100644 --- a/lib/shared/tables.lua +++ b/lib/shared/tables.lua @@ -63,7 +63,9 @@ end Table.FindFirstUnoccupiedSlot = function(tbl) local occupiedSlots = {} for _, v in pairs(tbl) do - occupiedSlots[v.slot] = true + if v.slot then + occupiedSlots[v.slot] = true + end end for i = 1, BridgeServerConfig.MaxInventorySlots do if not occupiedSlots[i] then