mirror of https://github.com/axmolengine/axmol.git
Update CCDirectorCaller.mm
First destroy CCDirector instance with cocos2d::CCDirector::sharedDirector()->end() Then create new CCDirector instance with cocos2d::CCApplication::sharedApplication()->run(); APP will crash at CCApplication::setAnimationInterval [[CCDirectorCaller sharedDirectorCaller] setAnimationInterval: interval ];
This commit is contained in:
parent
2f0e10cd74
commit
2ea447dbfd
|
@ -51,6 +51,7 @@ static id s_sharedDirectorCaller;
|
|||
+(void) destroy
|
||||
{
|
||||
[s_sharedDirectorCaller release];
|
||||
s_sharedDirectorCaller = nil;
|
||||
}
|
||||
|
||||
-(void) alloc
|
||||
|
|
Loading…
Reference in New Issue