v. 0.68.08b

Incorrect return
This commit is contained in:
Azgaar 2018-09-27 23:12:21 +03:00
parent 96c98b181f
commit bf4b7b27b7

View file

@ -6347,12 +6347,12 @@ function fantasyMap() {
// return cell / polly Index or error
function getIndex(point) {
const c = diagram.find(point[0],point[1]);
let c = diagram.find(point[0], point[1]);
if (!c) {
console.error("Cannot find closest cell for points" + point[0] + ", " + point[1]);
return;
}
return index = c.index;
return c.index;
}
// re-calculate data for a particular state