Merge pull request #2571 from uboot/dev

Fixed Animation.setFrame() for sprite index argument
This commit is contained in:
Richard Davey 2016-06-21 22:20:24 +01:00 committed by GitHub
commit 80f12ec074

View file

@ -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;
}