We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71f8247 commit befcf74Copy full SHA for befcf74
1 file changed
src/tilemap/Tilemap.js
@@ -400,7 +400,7 @@ Phaser.Tilemap.prototype = {
400
// Collide all of the IDs given in the indexes array
401
for (var i = 0, len = indexes.length; i < len; i++)
402
{
403
- this.setCollisionByIndex(i, layer, false);
+ this.setCollisionByIndex(indexes[i], layer, false);
404
}
405
406
// Now re-calculate interesting faces
0 commit comments