Skip to content

Commit

Permalink
jshint fix + draw sprite fix
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 26, 2014
1 parent 86c228d commit cd96324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gameobjects/BitmapData.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,8 @@ Phaser.BitmapData.prototype = {

if (source instanceof Phaser.Image || source instanceof Phaser.Sprite)
{
src = sprite.texture.baseTexture.source;
var frame = sprite.texture.frame;
src = source.texture.baseTexture.source;
var frame = source.texture.frame;
sx = frame.x;
sy = frame.y;
sw = frame.width;
Expand Down

0 comments on commit cd96324

Please sign in to comment.