Attempt to fix reported crash __cybersyn__/scripts/gui/stations.lua:110: bad argument #2 of 3 to 'btest' (number expected, got nil)

This commit is contained in:
Will Berry
2023-03-09 12:09:16 -05:00
parent c55a5fc79d
commit 7d60f9412a
2 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ function inventory_tab.build(map_data, player_data)
goto continue
end
::has_match::
local train_flag = get_network_flag(station, search_network_name)
local train_flag = get_network_flag(station, station.network_name)
if not bit32.btest(search_network_mask, train_flag) then
goto continue
end