Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Commit

Permalink
Fix: PID 17363638 Issue WPFerg#7
Browse files Browse the repository at this point in the history
  • Loading branch information
William Ferguson committed Jul 25, 2014
1 parent 968baec commit ea1249b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/Sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var Sprite = function(data) {
this.rotationStyle = data.rotationStyle || 'normal';
this.isFlipped = data.direction < 0 && data.rotationStyle == 'leftRight';
this.costumes = data.costumes || [];
this.currentCostumeIndex = data.currentCostumeIndex || 0;
this.currentCostumeIndex = Math.floor(data.currentCostumeIndex) || 0;
this.previousCostumeIndex = -1;

this.objName = data.objName || '';
Expand Down

0 comments on commit ea1249b

Please sign in to comment.