aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaverick2797 <git.maverick2797@gmail.com>2024-10-30 19:02:19 +0800
committerorwell <orwell@bleipb.de>2024-11-09 22:31:56 +0100
commit322fc31e74151a0ce6a14b49185b0ec9000ff5b2 (patch)
treebdea0826a2f35804125f92e1818b52edb677bd9d
parentd83d06ecdd8a23e5c36826f150c72d0ff8b644f9 (diff)
downloadadvtrains-322fc31e74151a0ce6a14b49185b0ec9000ff5b2.tar.gz
advtrains-322fc31e74151a0ce6a14b49185b0ec9000ff5b2.tar.bz2
advtrains-322fc31e74151a0ce6a14b49185b0ec9000ff5b2.zip
Fix get_fc concat when fc = nil
-rw-r--r--advtrains_luaautomation/atc_rail.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua
index f6a7823..177fa78 100644
--- a/advtrains_luaautomation/atc_rail.lua
+++ b/advtrains_luaautomation/atc_rail.lua
@@ -95,7 +95,7 @@ function r.fire_event(pos, evtdata, appr_internal)
if not train_id then return end
local fc_list = {}
for index,wagon_id in ipairs(train.trainparts) do
- fc_list[index] = table.concat(advtrains.wagons[wagon_id].fc,"!") or ""
+ fc_list[index] = table.concat(advtrains.wagons[wagon_id].fc or {},"!")
end
return fc_list
end,