fix for fix for fix

This commit is contained in:
Robert Bendun 2021-06-21 13:28:03 +02:00
parent 6c45344475
commit a11dd999df

View File

@ -102,6 +102,7 @@ class Evolution extends Arrangement {
continue; continue;
amount -= this.productsAmount[this.productIndex]; amount -= this.productsAmount[this.productIndex];
} }
try {
const [x, y] = i2gc(this.productIndex++); const [x, y] = i2gc(this.productIndex++);
const product = Knowledge.semanticNetwork.findProductByName(this.population[this.populationIndex].products[this.productIndex]); const product = Knowledge.semanticNetwork.findProductByName(this.population[this.populationIndex].products[this.productIndex]);
if (!product) if (!product)
@ -111,6 +112,7 @@ class Evolution extends Arrangement {
amount, amount,
x, y x, y
}; };
} catch (e) {}
} }
} }