We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
CallFuncN clone Issues...
CallFuncN clone Issues...
Bug #2544 [Closed]
What he mean was the old condition judgment using “else if( _function )”is wrong,it should be replaced with “else if( _functionN)”.This error led to the clone of the CallFuncN object can’t call initWithFunction function.
- Status changed from New to Resolved
Status: | Closed | |
---|---|---|
Start date: | 2013-08-19 | |
Priority: | Normal | |
Due date: | ||
Assignee: | - | |
% Done: | 100% |
|
Category: | all | |
Target version: | 3.0-beta |
(LeeMyoungYeol opened this issue 11 days ago in github)
CallFuncN * CallFuncN::clone() const
{
// no copy constructor
auto a = new CallFuncN();
if( selectorTarget) {
a~~>initWithTarget;
}
else if{ <~~ //@Issues
a~~>initWithFunction;
}
a~~>autorelease;
return a;
}
changefunction -> _functionN