typo, mean to say < not <=

This commit is contained in:
Chad Engler 2013-04-17 07:55:38 -04:00
parent 7bcdafaecf
commit 266dbed4ad

View file

@ -110,7 +110,7 @@ PIXI.MovieClip.prototype.updateTransform = function()
this.currentFrame += this.animationSpeed;
var round = (this.currentFrame + 0.5) | 0;
if(this.loop || round <= this.textures.length)
if(this.loop || round < this.textures.length)
{
this.setTexture(this.textures[round % this.textures.length]);
}