修正玩家创建任务第一次初始化运行的时候报错没有任何提示
This commit is contained in:
@@ -203,7 +203,7 @@ end
|
|||||||
--------------------------<Method>--------------------------
|
--------------------------<Method>--------------------------
|
||||||
function Player:newTask(code,...)
|
function Player:newTask(code,...)
|
||||||
local thread=coroutine.create(code)
|
local thread=coroutine.create(code)
|
||||||
resume(thread,self,...)
|
assert(resume(thread,self,...))
|
||||||
if status(thread)~='dead'then
|
if status(thread)~='dead'then
|
||||||
ins(self.tasks,{
|
ins(self.tasks,{
|
||||||
thread=thread,
|
thread=thread,
|
||||||
|
|||||||
Reference in New Issue
Block a user