Hi guys the following code causes a EXC_BAD_ACCESS. Does anybody know the reason?
CCMenuItemImage *item1 = CCMenuItemImage::create(“stard.png”,NULL,NULL,this,menu_selector(Widgets::oneStar));
Hi guys the following code causes a EXC_BAD_ACCESS. Does anybody know the reason?
CCMenuItemImage *item1 = CCMenuItemImage::create(“stard.png”,NULL,NULL,this,menu_selector(Widgets::oneStar));
Fixed it myself
it has to be MenuItemImage *item1 = MenuItemImage::create(“stard.png”, emptyString, CC_CALLBACK_1(Widgets::oneStar,this));