cleared warning

This commit is contained in:
Monica Moniot
2022-11-04 18:05:05 -04:00
parent 1cb283c1fd
commit d734186508

View File

@@ -237,9 +237,9 @@ function set_r_wagon_combs(map_data, station, train)
end
end
if comb and carriage.type == "cargo-wagon" then
local signals = {}
local inv = carriage.get_inventory(defines.inventory.cargo_wagon)
if inv then
local signals = {}
for stack_i = 1, #inv do
local stack = inv[stack_i]
if stack.valid_for_read then
@@ -248,6 +248,7 @@ function set_r_wagon_combs(map_data, station, train)
end
end
set_combinator_output(map_data, comb, signals)
end
elseif comb and carriage.type == "fluid-wagon" then
local signals = {}