From 2e575ee761cfdbc86afead28f2bbcb05fc20e616 Mon Sep 17 00:00:00 2001 From: orwell Date: Tue, 7 Jan 2025 22:55:50 +0100 Subject: Fix crash with missing section in routesetting, correctly clear ARS table when empty --- advtrains_interlocking/ars.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains_interlocking/ars.lua') 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} -- cgit v1.2.3