sync 19661: Clear the scene stack in the expected order (#19935)

This commit is contained in:
minggo 2019-07-19 16:53:20 +08:00 committed by GitHub
parent 838c285696
commit 956fd85401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -995,7 +995,12 @@ void Director::reset()
}
}
#endif // CC_ENABLE_GC_FOR_NATIVE_OBJECTS
_scenesStack.clear();
while (!_scenesStack.empty())
{
_scenesStack.popBack();
}
stopAnimation();