about summary refs log tree commit diff stats
path: root/037call_reply.cc
diff options
context:
space:
mode:
Diffstat (limited to '037call_reply.cc')
-rw-r--r--037call_reply.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/037call_reply.cc b/037call_reply.cc
index da1cf1f1..a13c88e5 100644
--- a/037call_reply.cc
+++ b/037call_reply.cc
@@ -33,8 +33,8 @@ case REPLY: {
       vector<string> tmp = property(reply_inst.ingredients.at(i), "same-as-ingredient");
       assert(tmp.size() == 1);
       long long int ingredient_index = to_int(tmp.at(0));
-      if (caller_instruction.products.at(i).value != caller_instruction.ingredients[ingredient_index].value)
-        raise << "'same-as-ingredient' result " << caller_instruction.products.at(i).value << " must be location " << caller_instruction.ingredients[ingredient_index].value << '\n';
+      if (caller_instruction.products.at(i).value != caller_instruction.ingredients.at(ingredient_index).value)
+        raise << "'same-as-ingredient' result " << caller_instruction.products.at(i).value << " must be location " << caller_instruction.ingredients.at(ingredient_index).value << '\n';
     }
   }
   // refresh instruction_counter to caller's step_index