about summary refs log tree commit diff stats
path: root/058shape_shifting_container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-02-06 16:47:10 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-02-07 02:16:37 -0800
commit715806ca3198fdb5d222bf5eb158d8690b0a1e1f (patch)
tree45a9edf010aecdcb90a8052f7e307a8f12a47120 /058shape_shifting_container.cc
parent8b3b97e848a3db3c8542c86c7c03fd65f38865a3 (diff)
downloadmu-715806ca3198fdb5d222bf5eb158d8690b0a1e1f.tar.gz
2637 - save type names for container elements
Diffstat (limited to '058shape_shifting_container.cc')
-rw-r--r--058shape_shifting_container.cc8
1 files changed, 3 insertions, 5 deletions
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")