From 80fcd72450fcdce2a42f8d9f36d61ab75f4dd293 Mon Sep 17 00:00:00 2001 From: cheapie Date: Wed, 15 May 2024 19:23:21 -0500 Subject: Fix possible crash in dispatcher --- dispatcherfw.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dispatcherfw.lua') 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 -- cgit v1.2.3