From 7ec03589f73ef853f66a7384280c72114d677bc4 Mon Sep 17 00:00:00 2001 From: norrbotten Date: Tue, 23 Jul 2019 01:20:10 +0200 Subject: [PATCH] Negative ops still possible here --- lua/entities/gmod_wire_expression2/core/wirelink.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = {}