Fix get_fc concat when fc = nil
This commit is contained in:
parent
d83d06ecdd
commit
322fc31e74
|
@ -95,7 +95,7 @@ function r.fire_event(pos, evtdata, appr_internal)
|
||||||
if not train_id then return end
|
if not train_id then return end
|
||||||
local fc_list = {}
|
local fc_list = {}
|
||||||
for index,wagon_id in ipairs(train.trainparts) do
|
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
|
end
|
||||||
return fc_list
|
return fc_list
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue