mirror of https://github.com/axmolengine/axmol.git
sync 19661: Clear the scene stack in the expected order (#19935)
This commit is contained in:
parent
838c285696
commit
956fd85401
|
@ -995,7 +995,12 @@ void Director::reset()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // CC_ENABLE_GC_FOR_NATIVE_OBJECTS
|
#endif // CC_ENABLE_GC_FOR_NATIVE_OBJECTS
|
||||||
_scenesStack.clear();
|
|
||||||
|
while (!_scenesStack.empty())
|
||||||
|
{
|
||||||
|
_scenesStack.popBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
stopAnimation();
|
stopAnimation();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue