about summary refs log tree commit diff stats
path: root/cpp/012run
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/012run')
-rw-r--r--cpp/012run3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/012run b/cpp/012run
index 558a264d..42b5d477 100644
--- a/cpp/012run
+++ b/cpp/012run
@@ -28,7 +28,8 @@ struct routine {
 
 :(code)
 void run(string form) {
-  run(add_recipes(form));
+  vector<recipe_number> recipes_added = add_recipes(form);
+  run(recipes_added.front());
 }
 
 void run(recipe_number r) {