From ab739bdce01e41646f8d3fafb2767516170ccdc2 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Sat, 23 Jul 2016 09:43:20 +0100 Subject: [PATCH] Added back in undefined Tileset check. --- src/tilemap/TilemapLayerGL.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tilemap/TilemapLayerGL.js b/src/tilemap/TilemapLayerGL.js index 58ecd21a3..634f49194 100644 --- a/src/tilemap/TilemapLayerGL.js +++ b/src/tilemap/TilemapLayerGL.js @@ -173,7 +173,6 @@ Phaser.TilemapLayerGL = function (game, tilemap, index, width, height, tileset) * @private */ - /* if (tileset === undefined) { if (tilemap.layers[index] && tilemap.layers[index].tileset) @@ -184,8 +183,11 @@ Phaser.TilemapLayerGL = function (game, tilemap, index, width, height, tileset) { tileset = tilemap.tilesets[0]; } + else + { + tileset = null; + } } - */ this._mc = {