replaced mSceneManager->getCurrentScene() with local var