make net states pointers

This commit is contained in:
Redo
2022-11-04 15:39:08 -06:00
parent 20b05812df
commit 9e0c196b63
6 changed files with 25 additions and 22 deletions

View File

@@ -371,10 +371,10 @@ end
function Simulation.sendfxupdate(sim)
for k, group in pairs(sim.groupfxqueue) do
if group.state ~= group.fxstate then
group.fxstate = group.state
if group.state[0] ~= group.fxstate then
group.fxstate = group.state[0]
local data = group.state
local data = group.state[0]
for i, wire in pairs(group.wires) do
data = data .. "\t" .. Wire.getobjref(wire)