错误症状
最近做实训cocos2dx项目的TA,一个同学在场景切换时遇到如下问题,场景B->C,C->B,B->C,然后场景C->B,返回场景B时程序就崩溃了
主要涉及代码
bool StartScene::init() {
if (!Scene::init())
return false;
MenuItemFont *skipMenuItem = MenuItemFont::create("skip",this, menu_selector(StartScene::SkipMenuItemCallback));
skipMenuItem->setAnchorPoint(Vec2(0, 0));
skipMenuItem->setPosition(Ve