diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-05 19:39:20 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-05 19:39:20 -0700 |
commit | 5e14ce10db89a72a727c8dead0b27b036044099c (patch) | |
tree | 3bbf29499b5f62ed936ee5d46c459f89aef6a20a /cpp/036call_ingredient.cc | |
parent | 363685b87d15307c91d1f330f44b57bf377361a8 (diff) | |
download | mu-5e14ce10db89a72a727c8dead0b27b036044099c.tar.gz |
1270 - we can now pass ingredients to routines as we start them
Diffstat (limited to 'cpp/036call_ingredient.cc')
-rw-r--r-- | cpp/036call_ingredient.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/036call_ingredient.cc b/cpp/036call_ingredient.cc index bbbe3483..6224f8df 100644 --- a/cpp/036call_ingredient.cc +++ b/cpp/036call_ingredient.cc @@ -30,8 +30,8 @@ call(recipe_number r) :running_recipe(r), running_step_index(0), next_ingredient :(replace "Current_routine->calls.push(call(current_instruction().operation))" following "End Primitive Recipe Implementations") call callee(current_instruction().operation); -for (vector<reagent>::const_iterator p = current_instruction().ingredients.begin(); p != current_instruction().ingredients.end(); ++p) { - callee.ingredient_atoms.push_back(read_memory(*p)); +for (size_t i = 0; i < current_instruction().ingredients.size(); ++i) { + callee.ingredient_atoms.push_back(read_memory(current_instruction().ingredients[i])); } Current_routine->calls.push(callee); |