about summary refs log tree commit diff stats
path: root/075scenario_console.cc
diff options
context:
space:
mode:
Diffstat (limited to '075scenario_console.cc')
-rw-r--r--075scenario_console.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/075scenario_console.cc b/075scenario_console.cc
index f8e3e1a1..47cb5f29 100644
--- a/075scenario_console.cc
+++ b/075scenario_console.cc
@@ -50,7 +50,8 @@ case ASSUME_CONSOLE: {
 case ASSUME_CONSOLE: {
   // create a temporary recipe just for parsing; it won't contain valid instructions
   istringstream in("[" + current_instruction().ingredients.at(0).name + "]");
-  recipe r = slurp_body(in);
+  recipe r;
+  slurp_body(in, r);
   long long int num_events = count_events(r);
   // initialize the events like in new-fake-console
   long long int size = num_events*size_of_event() + /*space for length*/1;