mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Add console warning when invalid tile index is used.
This commit is contained in:
parent
70f95d2558
commit
7454eb0aa0
1 changed files with 4 additions and 0 deletions
|
@ -217,6 +217,10 @@ Phaser.Tileset.prototype = {
|
|||
alpha: alpha
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
console.warn("invalid tile index in drawGl", index, this.firstgid, this.name);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue