From 677f7ca1d31263ef5e853abce8397afabc93f25a Mon Sep 17 00:00:00 2001 From: pandamicro Date: Wed, 31 Dec 2014 15:32:59 +0800 Subject: [PATCH] Improve restart game --- cocos/base/CCDirector.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index 06418e1e39..dd0d7c04ba 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -1041,6 +1041,9 @@ void Director::restartDirector() // Texture cache need to be reinitialized initTextureCache(); + // Reschedule for action manager + getScheduler()->scheduleUpdate(getActionManager(), Scheduler::PRIORITY_SYSTEM, false); + // release the objects PoolManager::getInstance()->getCurrentPool()->clear();