mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +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
|
alpha: alpha
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
console.warn("invalid tile index in drawGl", index, this.firstgid, this.name);
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue