diff --git a/lua/entities/gmod_wire_expression2/core/wirelink.lua b/lua/entities/gmod_wire_expression2/core/wirelink.lua index cd79254d55..9907cc907a 100644 --- a/lua/entities/gmod_wire_expression2/core/wirelink.lua +++ b/lua/entities/gmod_wire_expression2/core/wirelink.lua @@ -398,8 +398,9 @@ e2function number wirelink:readCell(address) end e2function array wirelink:readArray(start, size) + if size < 0 then return {} end if !validWirelink(self, this) or !this.ReadCell then return {} end - + self.prf = self.prf + size local ret = {}