From 41d149a760e90b2a24db3ac6ecbf33876d19f987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Pa=C5=A1ek?= Date: Tue, 22 Mar 2022 16:44:00 +0000 Subject: [PATCH] Fix --- advtrains_interlocking/routesetting.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/advtrains_interlocking/routesetting.lua b/advtrains_interlocking/routesetting.lua index 7c4d14c..43679fd 100644 --- a/advtrains_interlocking/routesetting.lua +++ b/advtrains_interlocking/routesetting.lua @@ -45,6 +45,7 @@ ilrs.rte_callbacks = { -- false, message, cbts, cblk - something went wrong, what is contained in the message. -- cbts: the ts id of the conflicting ts, cblk: the pts of the conflicting component function ilrs.set_route(signal, route, try) + if not route then return end if not try then local tsuc, trsn, cbts, cblk = ilrs.set_route(signal, route, true) if not tsuc then