mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
Merge pull request #6648 from samme/fix/PutTileAt-2
Fix TypeError in PutTileAt()
This commit is contained in:
commit
070e42d64e
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ var PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer)
|
||||||
var tilemap = layer.tilemapLayer.tilemap;
|
var tilemap = layer.tilemapLayer.tilemap;
|
||||||
var tiles = tilemap.tiles;
|
var tiles = tilemap.tiles;
|
||||||
var sid = tiles[index][2];
|
var sid = tiles[index][2];
|
||||||
var set = tilemap.tileset[sid];
|
var set = tilemap.tilesets[sid];
|
||||||
|
|
||||||
newTile.width = set.tileWidth;
|
newTile.width = set.tileWidth;
|
||||||
newTile.height = set.tileHeight;
|
newTile.height = set.tileHeight;
|
||||||
|
|
Loading…
Reference in a new issue