diff --git a/src/logic/evolution.js b/src/logic/evolution.js index a53887c..e2ced48 100644 --- a/src/logic/evolution.js +++ b/src/logic/evolution.js @@ -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