aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/ars.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2025-01-07 22:55:50 +0100
committerorwell <orwell@bleipb.de>2025-01-07 22:55:50 +0100
commit2e575ee761cfdbc86afead28f2bbcb05fc20e616 (patch)
tree5dd48b5a2f6ac4ac55be2b098471b90b82a43dc7 /advtrains_interlocking/ars.lua
parentee5236459a9fa54919306bf5277bd3f798a859ca (diff)
downloadadvtrains-2e575ee761cfdbc86afead28f2bbcb05fc20e616.tar.gz
advtrains-2e575ee761cfdbc86afead28f2bbcb05fc20e616.tar.bz2
advtrains-2e575ee761cfdbc86afead28f2bbcb05fc20e616.zip
Fix crash with missing section in routesetting, correctly clear ARS table when empty
Diffstat (limited to 'advtrains_interlocking/ars.lua')
-rw-r--r--advtrains_interlocking/ars.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_interlocking/ars.lua b/advtrains_interlocking/ars.lua
index b3065ee..eb10497 100644
--- a/advtrains_interlocking/ars.lua
+++ b/advtrains_interlocking/ars.lua
@@ -52,7 +52,7 @@ function il.ars_to_text(arstab)
end
function il.text_to_ars(t)
- if t=="" then
+ if not string.match(t, "%S+") then
return nil
elseif t=="*" then
return {default=true}