修复cc出故障后非lua对象不会自动回收导致内存泄漏
This commit is contained in:
@@ -189,7 +189,7 @@ function update.alive(P,dt)
|
||||
if not C[1]then
|
||||
if P.AI_thread then
|
||||
if not pcall(P.AI_thread)then
|
||||
P.AI_thread=nil
|
||||
P:destroyBot()
|
||||
end
|
||||
else
|
||||
P:act_hardDrop()
|
||||
|
||||
Reference in New Issue
Block a user