Logic Bug?(CCScheduler::scheduleSelector)

code in CCScheduler::scheduleSelector :
….
if (! pElement)
{
pElement = (tHashSelectorEntry *)calloc(sizeof(*pElement), 1);
pElement->target = pTarget;
if (pTarget)
{
dynamic_cast<CCObject*>(pTarget)->retain();
}
……

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: