More animation tests.

This commit is contained in:
photonstorm
2014-02-07 04:12:23 +00:00
parent 6958ac73d3
commit 773b4d5ed1
5 changed files with 379 additions and 36 deletions
+3 -3
View File
@@ -60,12 +60,12 @@ Phaser.FrameData.prototype = {
*/
getFrame: function (index) {
if (this._frames.length > index)
if (index > this._frames.length)
{
return this._frames[index];
index = 0;
}
return null;
return this._frames[index];
},