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:
hailong 2013-03-22 15:02:46 +08:00
parent 2f0e10cd74
commit 2ea447dbfd
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ static id s_sharedDirectorCaller;
+(void) destroy
{
[s_sharedDirectorCaller release];
s_sharedDirectorCaller = nil;
}
-(void) alloc