From 5e14ce10db89a72a727c8dead0b27b036044099c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 5 May 2015 19:39:20 -0700 Subject: 1270 - we can now pass ingredients to routines as we start them --- cpp/036call_ingredient.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/036call_ingredient.cc') 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::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); -- cgit 1.4.1-2-gfad0