about summary refs log tree commit diff stats
path: root/035call.cc
diff options
context:
space:
mode:
Diffstat (limited to '035call.cc')
-rw-r--r--035call.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/035call.cc b/035call.cc
index c88a16db..57c1513d 100644
--- a/035call.cc
+++ b/035call.cc
@@ -65,7 +65,7 @@ inline const string& current_recipe_name() {
 }
 :(replace{} "inline const instruction& current_instruction()")
 inline const instruction& current_instruction() {
-  return Recipe[Current_routine->calls.top().running_recipe].steps[Current_routine->calls.top().running_step_index];
+  return Recipe[Current_routine->calls.top().running_recipe].steps.at(Current_routine->calls.top().running_step_index);
 }
 
 :(replace{} "default:" following "End Primitive Recipe Implementations")