From 0d45251e98c58d6e5abd6de722ee66a08b18ac46 Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Fri, 17 Jun 2016 22:34:11 +0200 Subject: [PATCH] Fixed Animation.setFrame() for sprite index argument. --- src/animation/Animation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/animation/Animation.js b/src/animation/Animation.js index f0e433085..32b9638c3 100644 --- a/src/animation/Animation.js +++ b/src/animation/Animation.js @@ -306,7 +306,7 @@ Phaser.Animation.prototype = { { for (var i = 0; i < this._frames.length; i++) { - if (this._frames[i] === frameIndex) + if (this._frames[i] === frameId) { frameIndex = i; }