aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/signal_api.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-07-20 18:02:33 +0200
committerorwell <orwell@bleipb.de>2024-07-20 18:02:33 +0200
commitbaa50c03920fd0a563fce09929f3d56c3374e8bd (patch)
treeb7a8cf7b94952a7db823cab1de6860e57fd53c25 /advtrains_interlocking/signal_api.lua
parentc145e5db7473a0baab6438d7c2ed9616948d8387 (diff)
downloadadvtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.tar.gz
advtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.tar.bz2
advtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.zip
ARS supports triggering distant signal, other bugfixes
Diffstat (limited to 'advtrains_interlocking/signal_api.lua')
-rw-r--r--advtrains_interlocking/signal_api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_interlocking/signal_api.lua b/advtrains_interlocking/signal_api.lua
index eddf9da..cede405 100644
--- a/advtrains_interlocking/signal_api.lua
+++ b/advtrains_interlocking/signal_api.lua
@@ -279,7 +279,7 @@ end
function signal.get_aspect(pos)
local aspt = signal.aspects[advtrains.encode_pos(pos)]
local ma,dp = signal.get_aspect_internal(pos, aspt)
- return ma, advtrains.decode_pos(dp)
+ return ma, dp and advtrains.decode_pos(dp)
end
local function cache_mainaspects(ndefat)