mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Merge pull request #2571 from uboot/dev
Fixed Animation.setFrame() for sprite index argument
This commit is contained in:
commit
80f12ec074
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue