From a7e9690e616368aed0e90fcedf6eadec2a00cac7 Mon Sep 17 00:00:00 2001 From: Lysdal Date: Fri, 13 Feb 2026 11:56:17 +0100 Subject: [PATCH] Fixed error regarding FPGA infinite loop detection --- lua/entities/gmod_wire_fpga/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/entities/gmod_wire_fpga/init.lua b/lua/entities/gmod_wire_fpga/init.lua index 6d63e0afe6..81ab7ea767 100644 --- a/lua/entities/gmod_wire_fpga/init.lua +++ b/lua/entities/gmod_wire_fpga/init.lua @@ -682,9 +682,7 @@ function ENT:Run(changedNodes) if self.Debug then print("\n================================================================================") end --Extra - if self.ExecutionCount != nil then - self.ExecutionCount = self.ExecutionCount + 1 - end + self.ExecutionCount = self.ExecutionCount + 1 local bench = SysTime() self.CurrentExecution = bench @@ -797,12 +795,14 @@ function ENT:Run(changedNodes) if gate.isInput then value = {self.InputValues[nodeId]} + loopDetectionNodeId = nil elseif gate.isConstant then if gate.outputtypes[1] == "STRING" then value = { WireLib.ParseEscapes(node.value) } else value = {node.value} end + loopDetectionNodeId = nil else if nodeId == loopDetectionNodeId and #nodeQueue == loopDetectionSize then --infinite loop...