mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v. 0.68.08b
Incorrect return
This commit is contained in:
parent
96c98b181f
commit
bf4b7b27b7
1 changed files with 2 additions and 2 deletions
|
|
@ -6347,12 +6347,12 @@ function fantasyMap() {
|
||||||
|
|
||||||
// return cell / polly Index or error
|
// return cell / polly Index or error
|
||||||
function getIndex(point) {
|
function getIndex(point) {
|
||||||
const c = diagram.find(point[0],point[1]);
|
let c = diagram.find(point[0], point[1]);
|
||||||
if (!c) {
|
if (!c) {
|
||||||
console.error("Cannot find closest cell for points" + point[0] + ", " + point[1]);
|
console.error("Cannot find closest cell for points" + point[0] + ", " + point[1]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return index = c.index;
|
return c.index;
|
||||||
}
|
}
|
||||||
|
|
||||||
// re-calculate data for a particular state
|
// re-calculate data for a particular state
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue