This commit is contained in:
Richard Davey 2018-04-03 17:30:26 +01:00
commit e29de6a9b3
2 changed files with 3 additions and 3 deletions

View file

@ -141,7 +141,7 @@ var RenderTexture = new Class({
*/
destroy: function ()
{
GameObject.destroy.call(this);
GameObject.prototype.destroy.call(this);
if (this.renderer.type === CONST.WEBGL)
{

View file

@ -220,8 +220,8 @@ var StaticTilemapLayer = new Class({
var tileset = this.tileset;
var mapWidth = this.layer.width;
var mapHeight = this.layer.height;
var width = tileset.image.get().width;
var height = tileset.image.get().height;
var width = tileset.image.source[0].width;
var height = tileset.image.source[0].height;
var mapData = this.layer.data;
var renderer = this.renderer;
var tile;