mirror of https://github.com/axmolengine/axmol.git
issue #675: initialize acceleration_
This commit is contained in:
parent
92f741aa73
commit
414791a684
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue