about summary refs log tree commit diff stats
path: root/cpp/012run
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-16 18:10:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-16 18:10:38 -0700
commit3a24d35f7582591e274d0de6fd002b7491c82696 (patch)
treefcf9e0037261f2a730a388db7dc27c5d6ebb7fdd /cpp/012run
parent69f04c3fb0136778b80f7f64e16ae37cf8d22907 (diff)
downloadmu-3a24d35f7582591e274d0de6fd002b7491c82696.tar.gz
930
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) {