Fixed issue created with threadedFunctions where arguments weren't being passed
This commit is contained in:
parent
d797875317
commit
ef151893ab
@ -1475,7 +1475,7 @@ function multi.holdFor(n,func)
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
function thread:newFunction(func,holdme)
|
function thread:newFunction(func,holdme)
|
||||||
return function(self,...)
|
return function(...)
|
||||||
local rets, err
|
local rets, err
|
||||||
local function wait(no)
|
local function wait(no)
|
||||||
if thread.isThread() and not (no) then
|
if thread.isThread() and not (no) then
|
||||||
@ -1740,7 +1740,7 @@ function multi.initThreads(justThreads)
|
|||||||
for i=#threads,1,-1 do
|
for i=#threads,1,-1 do
|
||||||
if not threads[i].__started then
|
if not threads[i].__started then
|
||||||
if coroutine.running() ~= threads[i].thread then
|
if coroutine.running() ~= threads[i].thread then
|
||||||
_,ret,r1,r2,r3,r4,r5,r6=coroutine.resume(threads[i].thread,t0,t1,t2,t3,t4,t5,t6)
|
_,ret,r1,r2,r3,r4,r5,r6=coroutine.resume(threads[i].thread,unpack(threads[i].startArgs))
|
||||||
CheckRets(i)
|
CheckRets(i)
|
||||||
end
|
end
|
||||||
threads[i].__started = true
|
threads[i].__started = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user