summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-05-15 19:23:21 -0500
committercheapie <no-email-for-you@example.com>2024-05-15 19:23:21 -0500
commit80fcd72450fcdce2a42f8d9f36d61ab75f4dd293 (patch)
tree7c3ad3fefd352dd86cad2e36f9cf5ff9a0a00f75
parent77fda7e5b96b492a8ae0f5a3181a1446182df1a2 (diff)
downloadcelevator-80fcd72450fcdce2a42f8d9f36d61ab75f4dd293.tar
celevator-80fcd72450fcdce2a42f8d9f36d61ab75f4dd293.tar.gz
celevator-80fcd72450fcdce2a42f8d9f36d61ab75f4dd293.tar.bz2
celevator-80fcd72450fcdce2a42f8d9f36d61ab75f4dd293.tar.xz
celevator-80fcd72450fcdce2a42f8d9f36d61ab75f4dd293.zip
Fix possible crash in dispatcher
-rw-r--r--dispatcherfw.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/dispatcherfw.lua b/dispatcherfw.lua
index e909b19..318a69d 100644
--- a/dispatcherfw.lua
+++ b/dispatcherfw.lua
@@ -54,7 +54,9 @@ local function cartorealfloor(carid,floor)
if type(floor) == "table" then
local ret = {}
for i in pairs(floor) do
- ret[cartorealfloor(carid,i)] = true
+ if cartorealfloor(carid,i) then
+ ret[cartorealfloor(carid,i)] = true
+ end
end
return ret
end