From 6c45344475be88bfc5d6fa7a2996876bb1518d1b Mon Sep 17 00:00:00 2001 From: Robert Bendun Date: Mon, 21 Jun 2021 13:09:55 +0200 Subject: [PATCH] fix for fix --- src/logic/evolution.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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