Skip to content

Commit e6b5806

Browse files
committed
Merge pull request phaserjs#1581 from jromer94/master
fixed index out of bound error
2 parents ecdbb35 + 7556534 commit e6b5806

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/animation/FrameData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Phaser.FrameData.prototype = {
6060
*/
6161
getFrame: function (index) {
6262

63-
if (index > this._frames.length)
63+
if (index >= this._frames.length)
6464
{
6565
index = 0;
6666
}

0 commit comments

Comments
 (0)