From c610aec051c1ca6220fefc0a7255a97702fe828d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 30 Oct 2017 11:52:43 -0700 Subject: 4093 --- 056shape_shifting_recipe.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/056shape_shifting_recipe.cc b/056shape_shifting_recipe.cc index d28b5713..8714a5e9 100644 --- a/056shape_shifting_recipe.cc +++ b/056shape_shifting_recipe.cc @@ -197,16 +197,12 @@ int number_of_concrete_type_names(recipe_ordinal r) { const recipe& caller = get(Recipe, r); int result = 0; for (int i = 0; i < SIZE(caller.ingredients); ++i) - result += number_of_concrete_type_names(caller.ingredients.at(i)); + result += number_of_concrete_type_names(caller.ingredients.at(i).type); for (int i = 0; i < SIZE(caller.products); ++i) - result += number_of_concrete_type_names(caller.products.at(i)); + result += number_of_concrete_type_names(caller.products.at(i).type); return result; } -int number_of_concrete_type_names(const reagent& r) { - return number_of_concrete_type_names(r.type); -} - int number_of_concrete_type_names(const type_tree* type) { if (!type) return 0; if (type->atom) -- cgit 1.4.1-2-gfad0