mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-06 09:16:03 -06:00
fix for #98
This commit is contained in:
@@ -92,7 +92,7 @@ local function handle_drop_down(e)
|
|||||||
--prevent the use of the each signal with depots
|
--prevent the use of the each signal with depots
|
||||||
local network = element.parent.parent.bottom.network--[[@as LuaGuiElement]]
|
local network = element.parent.parent.bottom.network--[[@as LuaGuiElement]]
|
||||||
local signal = network.elem_value--[[@as SignalID]]
|
local signal = network.elem_value--[[@as SignalID]]
|
||||||
if signal.name == NETWORK_EACH then
|
if signal and (signal.name == NETWORK_EACH) then
|
||||||
network.elem_value = nil
|
network.elem_value = nil
|
||||||
set_comb_network_name(comb, nil)
|
set_comb_network_name(comb, nil)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user