fix
This commit is contained in:
parent
99a3fade00
commit
5e30c3e48a
@ -103,11 +103,12 @@ class Evolution extends Arrangement {
|
|||||||
amount -= this.productsAmount[this.productIndex];
|
amount -= this.productsAmount[this.productIndex];
|
||||||
}
|
}
|
||||||
const [x, y] = i2gc(this.productIndex++);
|
const [x, y] = i2gc(this.productIndex++);
|
||||||
return {
|
const product = Knowledge.semanticNetwork.findProductByName(this.population[this.populationIndex].products[this.productIndex]);
|
||||||
product: Knowledge.semanticNetwork.findProductByName(this.population[this.populationIndex].products[this.productIndex]),
|
return product && {
|
||||||
|
product,
|
||||||
amount,
|
amount,
|
||||||
x, y
|
x, y
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user