Update script.js

175 fix2
This commit is contained in:
Azgaar 2019-02-23 13:47:45 +03:00 committed by GitHub
parent 306a0628dc
commit ac153b1dda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3166,7 +3166,7 @@ function fantasyMap() {
let pathCells = [];
for (let i = 0; i <= l; i ++) {
const p = node.getPointAtLength(i);
const cell = find(p.x, p.y);
const cell = diagram.find(p.x, p.y);
pathCells.push(cell);
}
const uniqueCells = [...new Set(pathCells)];