diff options
author | cheapie <no-email-for-you@example.com> | 2024-05-15 19:23:21 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-05-15 19:23:21 -0500 |
commit | 80fcd72450fcdce2a42f8d9f36d61ab75f4dd293 (patch) | |
tree | 7c3ad3fefd352dd86cad2e36f9cf5ff9a0a00f75 | |
parent | 77fda7e5b96b492a8ae0f5a3181a1446182df1a2 (diff) | |
download | celevator-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.lua | 4 |
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 |