Add console warning when invalid tile index is used.

This commit is contained in:
Pete Baron 2016-07-21 15:23:37 +12:00
parent 70f95d2558
commit 7454eb0aa0

View file

@ -217,6 +217,10 @@ Phaser.Tileset.prototype = {
alpha: alpha
});
}
else
{
console.warn("invalid tile index in drawGl", index, this.firstgid, this.name);
}
},