Skip to content

Commit

Permalink
fix setTiledTileAt invalid bug (cocos#5713)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylanwanjun authored and SantyWang committed Nov 8, 2019
1 parent de36207 commit 7ca4e63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cocos2d/tilemap/CCTiledLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ let TiledLayer = cc.Class({
let idx = 0 | (pos.x + pos.y * this._layerSize.width);
if (idx < this._tiles.length) {
this._tiles[idx] = gid;
this._cullingDirty = true;
}
},

Expand Down

0 comments on commit 7ca4e63

Please sign in to comment.