~gpcf/advtrains-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] [LuaATC] Fix get_fc concat when fc = nil

Details
Message ID
<20241030110219.17496-1-git.maverick2797@gmail.com>
DKIM signature
pass
Download raw message
Patch: +1 -1
---
 advtrains_luaautomation/atc_rail.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua
index b98648e..ed43552 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,
-- 
2.46.0
Reply to thread Export thread (mbox)