mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Small fix, should check for -1 not 0
This commit is contained in:
parent
ae3ebf00cd
commit
d243da7a1b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue