From 4fa9b0d6ad72a58bf25f1d3a84a5236e637ab42b Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 23 Feb 2019 13:51:10 +0300 Subject: [PATCH] Update script.js 175 fix3 --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 5708c211..cce957e9 100644 --- a/script.js +++ b/script.js @@ -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)];