about summary refs log tree commit diff stats
path: root/056recipe_header.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-12-28 09:53:39 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-12-28 09:53:39 -0800
commit60c225baef638e17b90146a3537ce28119497bb8 (patch)
tree4478413fd197b2efac211e1070f372b8c05a6540 /056recipe_header.cc
parent67f969b971ef0c02cca02373c281d8c65b672232 (diff)
downloadmu-60c225baef638e17b90146a3537ce28119497bb8.tar.gz
2550
Diffstat (limited to '056recipe_header.cc')
-rw-r--r--056recipe_header.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/056recipe_header.cc b/056recipe_header.cc
index 3c43fa38..dc5fd564 100644
--- a/056recipe_header.cc
+++ b/056recipe_header.cc
@@ -198,6 +198,7 @@ Transform.push_back(check_header_ingredients);  // idempotent
 void check_header_ingredients(const recipe_ordinal r) {
   recipe& caller_recipe = get(Recipe, r);
   if (caller_recipe.products.empty()) return;
+  caller_recipe.ingredient_index.clear();
   trace(9991, "transform") << "--- checking reply instructions against header for " << caller_recipe.name << end();
   for (long long int i = 0; i < SIZE(caller_recipe.ingredients); ++i) {
     if (contains_key(caller_recipe.ingredient_index, caller_recipe.ingredients.at(i).name))