Logic Bug?(CCScheduler::scheduleSelector)

Logic Bug?(CCScheduler::scheduleSelector)
0.0 0


code in CCScheduler::scheduleSelector :
if (! pElement)
pElement = (tHashSelectorEntry *)calloc(sizeof(*pElement), 1);
pElement->target = pTarget;
if (pTarget)

SelectorProtocol is not subcalss of CCObject
I write some singlton (subclass from SelectorProtocol),this cause big problem…


Hi, please make your class to be inherited from both SelectorProtocol and CCObject.
We have moved the implement of SelectorProtocol to CCObject in the latest code on github. :slight_smile: