diff --git a/lua/entities/gmod_wire_expression2/core/table.lua b/lua/entities/gmod_wire_expression2/core/table.lua index 16cda1e7..05fee6eb 100644 --- a/lua/entities/gmod_wire_expression2/core/table.lua +++ b/lua/entities/gmod_wire_expression2/core/table.lua @@ -847,7 +847,6 @@ e2function number table:maxIndex() local largest = nil local index = 0 for k,v in pairs( this.n ) do - cost = cost + 1 if (this.ntypes[k] == "n") then if (largest == nil or v > largest) then largest = v @@ -865,7 +864,6 @@ e2function number table:minIndex() local smallest = nil local index = 0 for k,v in pairs( this.n ) do - cost = cost + 1 if (this.ntypes[k] == "n") then if (smallest == nil or v < smallest) then smallest = v