mirror of https://github.com/axmolengine/axmol.git
modify the logic of "node" method
This commit is contained in:
parent
61ccb9f59e
commit
ed4e288f27
|
@ -65,8 +65,11 @@ CCLayer *CCLayer::node()
|
||||||
pRet->autorelease();
|
pRet->autorelease();
|
||||||
return pRet;
|
return pRet;
|
||||||
}
|
}
|
||||||
CCX_SAFE_DELETE(pRet)
|
else
|
||||||
return NULL;
|
{
|
||||||
|
CCX_SAFE_DELETE(pRet)
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Touch and Accelerometer related
|
/// Touch and Accelerometer related
|
||||||
|
|
|
@ -61,7 +61,10 @@ CCScene *CCScene::node()
|
||||||
pRet->autorelease();
|
pRet->autorelease();
|
||||||
return pRet;
|
return pRet;
|
||||||
}
|
}
|
||||||
CCX_SAFE_DELETE(pRet)
|
else
|
||||||
return NULL;
|
{
|
||||||
|
CCX_SAFE_DELETE(pRet)
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}//namespace cocos2d
|
}//namespace cocos2d
|
||||||
|
|
Loading…
Reference in New Issue