diff --git a/src/tilemaps/components/PutTileAt.js b/src/tilemaps/components/PutTileAt.js index 9cb11dacc..edf250dac 100644 --- a/src/tilemaps/components/PutTileAt.js +++ b/src/tilemaps/components/PutTileAt.js @@ -75,7 +75,7 @@ var PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer) } else { - var tilemap = layer.tilemaplayer.tilemap; + var tilemap = layer.tilemapLayer.tilemap; var tiles = tilemap.tiles; var sid = tiles[index][2]; var set = tilemap.tileset[sid];