瀏覽代碼

Fix fork operation not setting ingredient values correctly.

j433866 6 年之前
父節點
當前提交
2b538061e9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/operations/Fork.mjs

+ 1 - 1
src/core/operations/Fork.mjs

@@ -89,7 +89,7 @@ class Fork extends Operation {
         // Run recipe over each tranche
         for (i = 0; i < inputs.length; i++) {
             // Baseline ing values for each tranche so that registers are reset
-            subOpList.forEach((op, i) => {
+            recipe.opList.forEach((op, i) => {
                 op.ingValues = JSON.parse(JSON.stringify(ingValues[i]));
             });