Skip to content

Commit

Permalink
Fix LinearPath path update for c++ target
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Lemière committed Jul 11, 2015
1 parent 38d80c5 commit 92563fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions com/haxepunk/tweens/motion/LinearPath.hx
Expand Up @@ -119,9 +119,9 @@ class LinearPath extends Motion
return;

// evaluate t for each point
var i:Int = 0;
while (i < _points.length)
_pointT[i] = _pointD[i ++] / distance;
var i:Int = -1;
while (++i < _points.length)
_pointT[i] = _pointD[i] / distance;
}

/**
Expand Down

0 comments on commit 92563fc

Please sign in to comment.