about summary refs log tree commit diff stats
path: root/cpp/036call_ingredient.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/036call_ingredient.cc')
-rw-r--r--cpp/036call_ingredient.cc4
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);