mirror of
https://github.com/wassname/phaser.git
synced 2026-08-11 05:49:23 +08:00
More animation tests.
This commit is contained in:
@@ -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];
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user