Skip to content

Commit

Permalink
Fix director restart issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pandamicro committed Feb 15, 2016
1 parent 3177f34 commit bbf89cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cocos/base/CCDirector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,9 @@ void Director::restartDirector()

// release the objects
PoolManager::getInstance()->getCurrentPool()->clear();

// Restart animation
startAnimation();

// Real restart in script level
#if CC_ENABLE_SCRIPT_BINDING
Expand Down

0 comments on commit bbf89cf

Please sign in to comment.