diff options
author | Maverick2797 <git.maverick2797@gmail.com> | 2024-10-30 19:02:19 +0800 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2024-11-09 22:31:56 +0100 |
commit | 322fc31e74151a0ce6a14b49185b0ec9000ff5b2 (patch) | |
tree | bdea0826a2f35804125f92e1818b52edb677bd9d /advtrains_luaautomation/atc_rail.lua | |
parent | d83d06ecdd8a23e5c36826f150c72d0ff8b644f9 (diff) | |
download | advtrains-322fc31e74151a0ce6a14b49185b0ec9000ff5b2.tar.gz advtrains-322fc31e74151a0ce6a14b49185b0ec9000ff5b2.tar.bz2 advtrains-322fc31e74151a0ce6a14b49185b0ec9000ff5b2.zip |
Fix get_fc concat when fc = nil
Diffstat (limited to 'advtrains_luaautomation/atc_rail.lua')
-rw-r--r-- | advtrains_luaautomation/atc_rail.lua | 2 |
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, |