fix for fix

This commit is contained in:
Robert Bendun 2021-06-21 13:09:55 +02:00
parent 5e30c3e48a
commit 6c45344475

View File

@ -104,7 +104,9 @@ class Evolution extends Arrangement {
}
const [x, y] = i2gc(this.productIndex++);
const product = Knowledge.semanticNetwork.findProductByName(this.population[this.populationIndex].products[this.productIndex]);
return product && {
if (!product)
continue;
return {
product,
amount,
x, y