diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index 52dfa90e66..1e6ae49b90 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -995,7 +995,12 @@ void Director::reset() } } #endif // CC_ENABLE_GC_FOR_NATIVE_OBJECTS - _scenesStack.clear(); + + while (!_scenesStack.empty()) + { + _scenesStack.popBack(); + } + stopAnimation();