mirror of
https://github.com/wiremod/wire.git
synced 2025-03-04 03:03:04 -05:00
Merge pull request #1955 from norrbotten/patch-1
Negative ops also possible with wirelink:readArray
This commit is contained in:
commit
3712086e33
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user