From 1e0ae9fcc5a28d84c0686fd55e3552fd24ae2224 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 10 Feb 2021 18:28:50 +0100 Subject: fix legacy signal aspect converter --- advtrains_interlocking/signal_api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advtrains_interlocking/signal_api.lua b/advtrains_interlocking/signal_api.lua index 6ca6a90..a44eda6 100644 --- a/advtrains_interlocking/signal_api.lua +++ b/advtrains_interlocking/signal_api.lua @@ -186,7 +186,7 @@ local function convert_aspect_if_necessary(asp) else newasp.main = 0 end - if asp.dst.free then + if asp.dst and asp.dst.free then newasp.dst = asp.dst.speed else newasp.dst = 0 -- cgit v1.2.3