diff options
author | orwell96 <orwell@bleipb.de> | 2021-02-10 18:28:50 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-02-10 18:28:50 +0100 |
commit | 1e0ae9fcc5a28d84c0686fd55e3552fd24ae2224 (patch) | |
tree | 757a8910e2e11a89b791fa9d4a592127567ef073 /advtrains_interlocking/signal_api.lua | |
parent | 96bb7d5e7edfde49f639f797ed71087d70470386 (diff) | |
download | advtrains-1e0ae9fcc5a28d84c0686fd55e3552fd24ae2224.tar.gz advtrains-1e0ae9fcc5a28d84c0686fd55e3552fd24ae2224.tar.bz2 advtrains-1e0ae9fcc5a28d84c0686fd55e3552fd24ae2224.zip |
fix legacy signal aspect converter
Diffstat (limited to 'advtrains_interlocking/signal_api.lua')
-rw-r--r-- | advtrains_interlocking/signal_api.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |