This commit is contained in:
Redo 2022-11-04 15:33:06 -06:00
parent f1b909279c
commit 20b05812df

View File

@ -27,7 +27,7 @@ end
function Gate.setportstate(gate, index, state) function Gate.setportstate(gate, index, state)
if state ~= gate.port_states[index] then if state ~= gate.port_states[index] then
local group = gate.port_nets[index] local group = gate.port_nets[index]
local net_state_num = gate.port_net_state_nums[index] -- local net_state_num = gate.port_net_state_nums[index]
group.state_num = group.state_num - gate.port_states[index] + state group.state_num = group.state_num - gate.port_states[index] + state
gate.port_states[index] = state gate.port_states[index] = state