issue #2103 add cocosbuilder lua test sample

This commit is contained in:
samuele3hu 2013-06-05 16:25:23 +08:00
parent c2e2be1b1b
commit 8e97c69b2f
1 changed files with 3 additions and 1 deletions

View File

@ -443,7 +443,9 @@ CCObject * CCCallFunc::copyWithZone(CCZone *pZone) {
CCActionInstant::copyWithZone(pZone); CCActionInstant::copyWithZone(pZone);
pRet->initWithTarget(m_pSelectorTarget); pRet->initWithTarget(m_pSelectorTarget);
pRet->m_pCallFunc = m_pCallFunc; pRet->m_pCallFunc = m_pCallFunc;
pRet->m_nScriptHandler = cocos2d::CCScriptEngineManager::sharedManager()->getScriptEngine()->reallocateScriptHandler(m_nScriptHandler); if (m_nScriptHandler > 0 ) {
pRet->m_nScriptHandler = cocos2d::CCScriptEngineManager::sharedManager()->getScriptEngine()->reallocateScriptHandler(m_nScriptHandler);
}
CC_SAFE_DELETE(pNewZone); CC_SAFE_DELETE(pNewZone);
return pRet; return pRet;
} }