Skip to content

Commit 599aa27

Browse files
authored
Merge pull request phaserjs#4958 from samme/fix/path-follower-complete
Fix PathFollower always at end of path
2 parents a4e4b98 + f4c0114 commit 599aa27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/components/PathFollower.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ var PathFollower = {
346346
var tweenData = tween.data[0];
347347
var pathVector = this.pathVector;
348348

349-
if (tweenData.state !== TWEEN_CONST.COMPLETE)
349+
if (tweenData.state === TWEEN_CONST.COMPLETE)
350350
{
351351
this.path.getPoint(1, pathVector);
352352

0 commit comments

Comments
 (0)