diff --git a/plugins.js b/plugins.js index 69b2ca3..e102e10 100644 --- a/plugins.js +++ b/plugins.js @@ -4390,7 +4390,7 @@ GA.plugins = function(ga) { //matches the current tile, and that sub-object has a `name` property, //then create a sprite and assign the tile properties onto //the sprite - if (tileproperties[key] && tileproperties[key].name) { + if (typeof tileproperties !== 'undefined' && tileproperties[key] && tileproperties[key].name) { //Make a sprite tileSprite = ga.sprite(texture);