Skip to content

Commit 68f4570

Browse files
committed
Merge pull request phaserjs#56 from cocoademon/master
Some small animation fixes
2 parents 8c41b32 + 61b9e11 commit 68f4570

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/animation/FrameData.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ Phaser.Animation.FrameData.prototype = {
164164
if (useNumericIndex)
165165
{
166166
// The actual frame
167-
output.push(this.getFrame(input[i]));
167+
output.push(this.getFrame(frames[i]));
168168
}
169169
else
170170
{
171171
// The actual frame
172-
output.push(this.getFrameByName(input[i]));
172+
output.push(this.getFrameByName(frames[i]));
173173
}
174174
}
175175
}
@@ -209,7 +209,7 @@ Phaser.Animation.FrameData.prototype = {
209209
// Does the frames array contain names or indexes?
210210
if (useNumericIndex)
211211
{
212-
output.push(frames[i].index);
212+
output.push(frames[i]);
213213
}
214214
else
215215
{

0 commit comments

Comments
 (0)