about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-01-12 10:05:54 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-01-12 10:05:54 -0800
commitbdb6161bf0cf7b8658845783d526204ad4bee638 (patch)
tree4f4136169e08388ebb33acf6ce91db25050cc833
parentb94ea5c81bc80deae70a3cdca060d0ceb0406939 (diff)
downloadmu-bdb6161bf0cf7b8658845783d526204ad4bee638.tar.gz
2556
-rw-r--r--056recipe_header.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/056recipe_header.cc b/056recipe_header.cc
index dc5fd564..dae4cd22 100644
--- a/056recipe_header.cc
+++ b/056recipe_header.cc
@@ -138,8 +138,9 @@ if (result.has_header) {
 :(before "End Rewrite Instruction(curr, recipe result)")
 if (curr.name == "load-ingredients") {
   curr.clear();
+  recipe_ordinal op = get(Recipe_ordinal, "next-ingredient");
   for (long long int i = 0; i < SIZE(result.ingredients); ++i) {
-    curr.operation = get(Recipe_ordinal, "next-ingredient");
+    curr.operation = op;
     curr.name = "next-ingredient";
     curr.products.push_back(result.ingredients.at(i));
     result.steps.push_back(curr);