Merge pull request #65 from mamoniot/beta-bug-fix-gui-crash-each-signal-filter

Fix crash related to each network signal in GUI
This commit is contained in:
Monica Moniot
2023-03-29 15:41:41 -04:00
committed by GitHub

View File

@@ -66,13 +66,9 @@ function inventory_tab.build(map_data, player_data)
end
end
if search_network_name then
if search_network_name == (NETWORK_EACH or NETWORK_ANYTHING) then
goto has_match
end
if search_network_name ~= station.network_name then
goto continue
end
::has_match::
local train_flag = get_network_mask(station, station.network_name)
if not bit32.btest(search_network_mask, train_flag) then
goto continue