Update script.js

175 fix3
This commit is contained in:
Azgaar 2019-02-23 13:51:10 +03:00 committed by GitHub
parent ac153b1dda
commit 4fa9b0d6ad
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 = diagram.find(p.x, p.y);
const cell = diagram.find(p.x, p.y).index;
pathCells.push(cell);
}
const uniqueCells = [...new Set(pathCells)];