typo, mean to say < not <=
This commit is contained in:
parent
7bcdafaecf
commit
266dbed4ad
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ PIXI.MovieClip.prototype.updateTransform = function()
|
||||||
|
|
||||||
this.currentFrame += this.animationSpeed;
|
this.currentFrame += this.animationSpeed;
|
||||||
var round = (this.currentFrame + 0.5) | 0;
|
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]);
|
this.setTexture(this.textures[round % this.textures.length]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue