I have a situation where some strange bug appears…
I have a sprite where I do setPosition. But when setPosition is called another function is called and the program crashes.
It works like this:
m_pSprite = CCSprite::create(…);
void SomeFunc(const CCPoint& pos)
If I put “this~~>addChild” function to Init function all will be OK.
I tried to rebuild solution several times but the same~~shit- happens.