JumpTo::clone() results in incorrect end position

JumpTo::clone() passes incorrect value to (_delta) to create() rather than _endPosition
This commit is contained in:
Namezero 2015-06-03 13:14:11 +02:00
parent 883f250f6a
commit c09e280b58
1 changed files with 1 additions and 1 deletions

View File

@ -1464,7 +1464,7 @@ JumpTo* JumpTo::clone() const
{ {
// no copy constructor // no copy constructor
auto a = new (std::nothrow) JumpTo(); auto a = new (std::nothrow) JumpTo();
a->initWithDuration(_duration, _delta, _height, _jumps); a->initWithDuration(_duration, _endPosition, _height, _jumps);
a->autorelease(); a->autorelease();
return a; return a;
} }