mirror of https://github.com/axmolengine/axmol.git
JumpTo::clone() results in incorrect end position
JumpTo::clone() passes incorrect value to (_delta) to create() rather than _endPosition
This commit is contained in:
parent
883f250f6a
commit
c09e280b58
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue