From 7e8bdac31ee1f859db4156803c95fd248ed4cc5c Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 19 Jul 2024 17:30:03 -0500 Subject: Fix crash if a dispatcher receives a status message for an unknown car --- dispatcherfw.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'dispatcherfw.lua') diff --git a/dispatcherfw.lua b/dispatcherfw.lua index 6489944..741175c 100644 --- a/dispatcherfw.lua +++ b/dispatcherfw.lua @@ -13,6 +13,7 @@ if not mem.powerstate then mem.powerstate = "awake" end if not mem.dbdcalls then mem.dbdcalls = {} end local function getpos(carid) + if not mem.params.floorsserved[carid] then return 0 end local floormap = {} local floorheights = {} for i=1,#mem.params.floornames,1 do -- cgit v1.2.3