Skip to content

Commit 7e43248

Browse files
committed
Fixed Tilemap.removeTile issue to put tile of index -1 instead of null.
1 parent 7b876d5 commit 7e43248

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tilemap/Tilemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ Phaser.Tilemap.prototype = {
10801080
{
10811081
var tile = this.layers[layer].data[y][x];
10821082

1083-
this.layers[layer].data[y][x] = null;
1083+
this.layers[layer].data[y][x] = new Phaser.Tile(this.layers[layer], -1, x, y, this.tileWidth, this.tileHeight);
10841084

10851085
this.layers[layer].dirty = true;
10861086

0 commit comments

Comments
 (0)