Merge pull request #1955 from norrbotten/patch-1

Negative ops also possible with wirelink:readArray
This commit is contained in:
thegrb93 2019-07-22 20:22:58 -04:00 committed by GitHub
commit 3712086e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {}