Projects > cpp > Issues > Bug #2544

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

CallFuncN clone Issues...

Bug #2544 [Closed]
godyZ 2013-08-19 04:02 . Updated almost 3 years ago

(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;
}
change
function -> _functionN

WenHai 2013-11-21 15:48
  • Target version changed from Candidate to 3.0-beta
ricardo 2013-11-21 22:11

Could you describe the problem further ?
What’s the problem with that code ?
thanks.

samuele3hu 2013-11-22 02:02

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.

dumganhar 2013-11-27 07:29
  • Status changed from New to Resolved
zhangxm 2013-12-05 01:53
  • % Done changed from 0 to 100
WenHai 2013-12-16 15:02
  • Status changed from Resolved to Closed

Atom PDF

Status:Closed
Start date:2013-08-19
Priority:Normal
Due date:
Assignee:-
% Done:

100%

Category:all
Target version:3.0-beta

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.