diff --git a/cocos2dx/actions/CCActionInstant.h b/cocos2dx/actions/CCActionInstant.h index 76e6eff571..4bc1822687 100644 --- a/cocos2dx/actions/CCActionInstant.h +++ b/cocos2dx/actions/CCActionInstant.h @@ -271,9 +271,6 @@ protected: int m_nScriptHandler; - /** function that will be called */ - std::function _function; - union { SEL_CallFunc m_pCallFunc; @@ -281,6 +278,9 @@ protected: SEL_CallFuncND m_pCallFuncND; SEL_CallFuncO m_pCallFuncO; }; + + /** function that will be called */ + std::function _function; }; /**