Skip to content

Commit 7ec0358

Browse files
norrbottenthegrb93
authored andcommitted
Negative ops still possible here
1 parent c4f5304 commit 7ec0358

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/entities/gmod_wire_expression2/core/wirelink.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,9 @@ e2function number wirelink:readCell(address)
398398
end
399399

400400
e2function array wirelink:readArray(start, size)
401+
if size < 0 then return {} end
401402
if !validWirelink(self, this) or !this.ReadCell then return {} end
402-
403+
403404
self.prf = self.prf + size
404405

405406
local ret = {}

0 commit comments

Comments
 (0)