修正玩家创建任务第一次初始化运行的时候报错没有任何提示

This commit is contained in:
MrZ626
2021-11-21 03:08:34 +08:00
parent 592b11366e
commit a4c52d9162

View File

@@ -203,7 +203,7 @@ end
--------------------------<Method>--------------------------
function Player:newTask(code,...)
local thread=coroutine.create(code)
resume(thread,self,...)
assert(resume(thread,self,...))
if status(thread)~='dead'then
ins(self.tasks,{
thread=thread,