From 266dbed4addcc94b4f1c92cdcf5e6cb95f996dd0 Mon Sep 17 00:00:00 2001 From: Chad Engler Date: Wed, 17 Apr 2013 07:55:38 -0400 Subject: [PATCH] typo, mean to say < not <= --- src/pixi/MovieClip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixi/MovieClip.js b/src/pixi/MovieClip.js index 87367ac..6b0cba2 100644 --- a/src/pixi/MovieClip.js +++ b/src/pixi/MovieClip.js @@ -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]); }