diff --git a/script.js b/script.js index 94cd33d7..5708c211 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 = find(p.x, p.y); + const cell = diagram.find(p.x, p.y); pathCells.push(cell); } const uniqueCells = [...new Set(pathCells)];