diff --git a/cocos2dx/platform/CCAccelerometerDelegate.h b/cocos2dx/platform/CCAccelerometerDelegate.h index 6890bb2e6c..584c651cff 100644 --- a/cocos2dx/platform/CCAccelerometerDelegate.h +++ b/cocos2dx/platform/CCAccelerometerDelegate.h @@ -39,6 +39,8 @@ public: double z; double timestamp; + + CCAcceleration(): x(0), y(0), z(0), timestamp(0) {} }; /**