mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-09 14:08:15 -06:00
Merge pull request #103 from download13/fixes-98
Fix crash when setting a combinator to depot mode without a network
This commit is contained in:
@@ -92,7 +92,7 @@ local function handle_drop_down(e)
|
||||
--prevent the use of the each signal with depots
|
||||
local network = element.parent.parent.bottom.network--[[@as LuaGuiElement]]
|
||||
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
|
||||
set_comb_network_name(comb, nil)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user