diff --git a/cocos2dx/layers_scenes_transitions_nodes/CCLayer.cpp b/cocos2dx/layers_scenes_transitions_nodes/CCLayer.cpp index 2fdb2575b1..e9df57ce66 100644 --- a/cocos2dx/layers_scenes_transitions_nodes/CCLayer.cpp +++ b/cocos2dx/layers_scenes_transitions_nodes/CCLayer.cpp @@ -243,7 +243,7 @@ void CCLayer::setAccelerometerInterval(double interval) { if (m_bIsRunning) { CCDirector* pDirector = CCDirector::sharedDirector(); -// pDirector->getAccelerometer()->setAccelerometerInterval(interval); + pDirector->getAccelerometer()->setAccelerometerInterval(interval); } } }