From 414791a684a45ccc33deb7e0f7331e833c92f1d2 Mon Sep 17 00:00:00 2001 From: minggo Date: Tue, 30 Aug 2011 10:34:29 +0800 Subject: [PATCH] issue #675: initialize acceleration_ --- cocos2dx/platform/ios/AccelerometerDelegateWrapper.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2dx/platform/ios/AccelerometerDelegateWrapper.mm b/cocos2dx/platform/ios/AccelerometerDelegateWrapper.mm index 4ad4f33269..322693aaf2 100644 --- a/cocos2dx/platform/ios/AccelerometerDelegateWrapper.mm +++ b/cocos2dx/platform/ios/AccelerometerDelegateWrapper.mm @@ -34,7 +34,7 @@ static AccelerometerDispatcher* s_pAccelerometerDispatcher; + (id) sharedAccelerometerDispather { if (s_pAccelerometerDispatcher == nil) { - s_pAccelerometerDispatcher = [self alloc]; + s_pAccelerometerDispatcher = [[self alloc] init]; } return s_pAccelerometerDispatcher;