From 715806ca3198fdb5d222bf5eb158d8690b0a1e1f Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 6 Feb 2016 16:47:10 -0800 Subject: 2637 - save type names for container elements --- 058shape_shifting_container.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to '058shape_shifting_container.cc') diff --git a/058shape_shifting_container.cc b/058shape_shifting_container.cc index 6416aca1..c9975b44 100644 --- a/058shape_shifting_container.cc +++ b/058shape_shifting_container.cc @@ -59,12 +59,10 @@ void read_type_ingredients(string& name) { } } -:(before "End insert_container Special Uses(type_name)") +:(before "End insert_container Special-cases") // check for use of type ingredients -if (type_name.at(0) == '_') { - *curr_type = new type_tree(get(info.type_ingredient_names, type_name)); - trace(9999, "parse") << " type: " << get(info.type_ingredient_names, type_name) << end(); - continue; +else if (!properties->value.empty() && properties->value.at(0) == '_') { + result->value = get(info.type_ingredient_names, properties->value); } :(before "End Container Type Checks") -- cgit 1.4.1-2-gfad0