mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-03-04 10:38:12 +00:00
Fix argument index in expect call
This commit is contained in:
parent
a48c3d0ba8
commit
c1c01bef7c
@ -121,10 +121,9 @@ handleMetatable = {
|
||||
local handle = self._handle
|
||||
if not handle.write then return nil, "file is not writable" end
|
||||
|
||||
local n = select("#", ...)
|
||||
for i = 1, n do
|
||||
for i = 1, select("#", ...) do
|
||||
local arg = select(i, ...)
|
||||
expect(1, arg, "string", "number")
|
||||
expect(i, arg, "string", "number")
|
||||
handle.write(arg)
|
||||
end
|
||||
return self
|
||||
|
Loading…
x
Reference in New Issue
Block a user