mirror of https://github.com/axmolengine/axmol.git
fixed #613: Call executeCallFuncN instead of executeCallFunc in CCMenuItem::activate()
This commit is contained in:
parent
d97fcbf752
commit
7a12bb9cdc
|
@ -96,7 +96,7 @@ namespace cocos2d{
|
|||
|
||||
if (m_functionName.size() && CCScriptEngineManager::sharedScriptEngineManager()->getScriptEngine())
|
||||
{
|
||||
CCScriptEngineManager::sharedScriptEngineManager()->getScriptEngine()->executeCallFunc(m_functionName.c_str());
|
||||
CCScriptEngineManager::sharedScriptEngineManager()->getScriptEngine()->executeCallFuncN(m_functionName.c_str(), this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue