mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Tilemap.getLayerIndex
will now return null
if a given TilemapLayer instance doesn't belong to the Tilemap or has been destroyed.
This commit is contained in:
parent
71bc9ad4f6
commit
950f0a8363
1 changed files with 1 additions and 1 deletions
|
@ -1282,7 +1282,7 @@ var Tilemap = new Class({
|
|||
{
|
||||
return layer;
|
||||
}
|
||||
else if (layer instanceof TilemapLayer)
|
||||
else if (layer instanceof TilemapLayer && layer.tilemap === this)
|
||||
{
|
||||
return layer.layerIndex;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue