about summary refs log tree commit diff stats
path: root/062convert_ingredients_to_text.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-11-25 22:17:39 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-11-25 22:17:39 -0800
commitcfa5a9f88756443f6d857726ace97ebbb3967d76 (patch)
treeeddfd0288ee8cf63054361fc910e445957f01932 /062convert_ingredients_to_text.cc
parentff92e434b81ec7eb877493f1e1e71a27f462514f (diff)
downloadmu-cfa5a9f88756443f6d857726ace97ebbb3967d76.tar.gz
3692
If we're automatically passing ingredients to 'append' through 'to-text'
if its first ingredient is text, we don't need to pass that first
ingredient itself through 'to-text'.
Diffstat (limited to '062convert_ingredients_to_text.cc')
-rw-r--r--062convert_ingredients_to_text.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/062convert_ingredients_to_text.cc b/062convert_ingredients_to_text.cc
index 642de92f..94ff5df3 100644
--- a/062convert_ingredients_to_text.cc
+++ b/062convert_ingredients_to_text.cc
@@ -93,7 +93,7 @@ void convert_ingredients_to_text(recipe& caller) {
       //   append _:text, ___
       // will never ever get used.
       if (is_literal_text(inst.ingredients.at(0)) || is_mu_text(inst.ingredients.at(0))) {
-        for (int j = 0;  j < SIZE(inst.ingredients);  ++j) {
+        for (int j = /*skip base*/1;  j < SIZE(inst.ingredients);  ++j) {
           ostringstream ingredient_name;
           ingredient_name << "append_" << i << '_' << j << ":address:array:character";
           convert_ingredient_to_text(inst.ingredients.at(j), new_instructions, ingredient_name.str());