about summary refs log tree commit diff stats
path: root/012transform.cc
diff options
context:
space:
mode:
Diffstat (limited to '012transform.cc')
-rw-r--r--012transform.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/012transform.cc b/012transform.cc
index a416c20a..0130cd16 100644
--- a/012transform.cc
+++ b/012transform.cc
@@ -56,6 +56,13 @@ void transform_all() {
   // End Transform All
 }
 
+// Later we'll have transforms create recipes out of other recipes. This
+// helper will help ensure we don't lose the new recipes.
+void transform_permanently() {
+  transform_all();
+  Recently_added_recipes.clear();
+}
+
 void parse_int_reagents() {
   trace(9991, "transform") << "--- parsing any uninitialized reagents as integers" << end();
   for (map<recipe_ordinal, recipe>::iterator p = Recipe.begin(); p != Recipe.end(); ++p) {