getRunningScene returns NULL after calling runWithScene

Hi,

As the title says: I call from my game init function :
pDirector->runWithScene(_pHomeScene);

and I know it’s working because I can see the scene on screen and do other operations which requires the scene just fine.

BUT if I call:
CCDirector::sharedDirector()->getRunningScene();
Just after the runWithScene the director returns NULL.

Seems a bit odd and I wonder what’s the best practice to avoid that? I can do some work arounds, just don’t like them very much :slight_smile:

Thanks, Capi