make gates use cdata for critical logic

This commit is contained in:
Redo
2022-11-04 13:10:10 -06:00
parent 07b3decc45
commit cdbf3ed089
10 changed files with 232 additions and 62 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 and gate.in_queue==0 then
if gate and gate.c.in_queue==0 then
Simulation.queuegate(sim, gate)
end
end