Skip to content

Commit 383324c

Browse files
committed
2 parents 378904d + 1ed9a68 commit 383324c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tile-model/tile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class Tile {
2626
for (let i = 0; i < tiles.length; i++) {
2727
let tile = tiles[i];
2828

29-
// Tile 5 can't match itself
30-
if (tile.index == 5 && this.index == 5) continue;
29+
// Tile can't match itself
30+
if (tile.index === this.index) continue;
3131

3232
// UP
3333
if (compareEdge(tile.edges[2], this.edges[0])) {

0 commit comments

Comments
 (0)