Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/entities/gmod_wire_expression2/core/wirelink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,11 @@ e2function number wirelink:readCell(address)
end

e2function array wirelink:readArray(start, size)
if size < 0 then return {} end
if size < 0 or size ~= size then return {} end
if !validWirelink(self, this) or !this.ReadCell then return {} end

self.prf = self.prf + size
if self.prf > e2_tickquota then error("perf", 0) end

local ret = {}

Expand Down