Skip to content

Commit

Permalink
Negative ops still possible here
Browse files Browse the repository at this point in the history
  • Loading branch information
norrbotten authored and thegrb93 committed Jul 23, 2019
1 parent c4f5304 commit 7ec0358
Showing 1 changed file with 2 additions and 1 deletion.
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 @@ -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 = {}
Expand Down

0 comments on commit 7ec0358

Please sign in to comment.