about summary refs log tree commit diff stats
path: root/037recipe.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-06 11:31:37 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-06 11:31:37 -0800
commit12f304a333ecee6326a8111e0d8e1c494ee92087 (patch)
tree5af25c6e5988ae686889f8f462de7d39cc8aad3f /037recipe.cc
parent795f5244abc9b9f26ff621fd1997db427289d2ba (diff)
downloadmu-12f304a333ecee6326a8111e0d8e1c494ee92087.tar.gz
2378
Now we're starting to run up against the misbehavior introduced by
generics: Type tries to insert rows for type ingredients. That is a
no-no.
Diffstat (limited to '037recipe.cc')
-rw-r--r--037recipe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/037recipe.cc b/037recipe.cc
index 0a4fea4e..42cc2279 100644
--- a/037recipe.cc
+++ b/037recipe.cc
@@ -7,7 +7,7 @@
 put(Type_ordinal, "recipe", 0);
 // 'recipe-ordinal' is the literal that can store recipe literals
 type_ordinal recipe_ordinal = put(Type_ordinal, "recipe-ordinal", Next_type_ordinal++);
-get(Type, recipe_ordinal).name = "recipe-ordinal";
+get_or_insert(Type, recipe_ordinal).name = "recipe-ordinal";
 
 :(before "End Reagent-parsing Exceptions")
 if (r.properties.at(0).second && r.properties.at(0).second->value == "recipe") {