Small fix, should check for -1 not 0

This commit is contained in:
gotenxds 2016-05-27 21:37:56 +03:00
parent ae3ebf00cd
commit d243da7a1b

View file

@ -419,7 +419,7 @@ Phaser.Animation.prototype = {
this._frameIndex += this._frameSkip;
}
if (!this.isReversed && this._frameIndex >= this._frames.length || this.isReversed && this._frameIndex <= 0)
if (!this.isReversed && this._frameIndex >= this._frames.length || this.isReversed && this._frameIndex <= -1)
{
if (this.loop)
{