From d6469df4c73432ca953be9645a7db3626026f117 Mon Sep 17 00:00:00 2001 From: orwell Date: Mon, 13 Oct 2025 21:14:58 +0200 Subject: lines: fix crash on nonexisting stdata --- advtrains_line_automation/stoprail.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/advtrains_line_automation/stoprail.lua b/advtrains_line_automation/stoprail.lua index 77c1dce..c16cfb6 100644 --- a/advtrains_line_automation/stoprail.lua +++ b/advtrains_line_automation/stoprail.lua @@ -20,6 +20,7 @@ local function updatemeta(pos) local stdata = advtrains.lines.stops[pe] if not stdata then meta:set_string("infotext", "Error") + return end local stn = advtrains.lines.stations[stdata.stn] local stn_viewname = stn and stn.name or "-" -- cgit v1.2.3