make input queue stack again

This commit is contained in:
Redo0
2021-07-24 15:35:00 -05:00
parent 7109dd70a2
commit bcc39d9f20
3 changed files with 10 additions and 6 deletions

View File

@@ -185,7 +185,7 @@ function Group.setstate(group, state)
local len = group.num_gates_update
for i = 1, len do
local gate = group.gates_update[i]
if gate.in_queue==0 then
if gate and gate.in_queue==0 then
Simulation.queuegate(sim, gate)
end
end