fix sim ref in net update

This commit is contained in:
Redo 2022-11-04 18:07:17 -06:00
parent 7d0dcc53a2
commit 9744345219

View File

@ -223,7 +223,7 @@ function Group.update(net, tick)
for i = 0, len do
local cgate = cnet.gates_update_c[i]
if cgate.in_queue[0]==0 then
local gate = Simulation.gate_from_cgate(sim, cgate)
local gate = Simulation.gate_from_cgate(GSim, cgate)
Simulation.queuegate(GSim, gate)
end
end