Skip to content

Commit befcf74

Browse files
committed
fix Tilemap.setCollision
1 parent 71f8247 commit befcf74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tilemap/Tilemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ Phaser.Tilemap.prototype = {
400400
// Collide all of the IDs given in the indexes array
401401
for (var i = 0, len = indexes.length; i < len; i++)
402402
{
403-
this.setCollisionByIndex(i, layer, false);
403+
this.setCollisionByIndex(indexes[i], layer, false);
404404
}
405405

406406
// Now re-calculate interesting faces

0 commit comments

Comments
 (0)