Merge pull request #6648 from samme/fix/PutTileAt-2

Fix TypeError in PutTileAt()
This commit is contained in:
Richard Davey 2023-11-08 15:28:12 +00:00 committed by GitHub
commit 070e42d64e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ var PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer)
var tilemap = layer.tilemapLayer.tilemap;
var tiles = tilemap.tiles;
var sid = tiles[index][2];
var set = tilemap.tileset[sid];
var set = tilemap.tilesets[sid];
newTile.width = set.tileWidth;
newTile.height = set.tileHeight;