about summary refs log tree commit diff stats
path: root/038scheduler.cc
diff options
context:
space:
mode:
Diffstat (limited to '038scheduler.cc')
-rw-r--r--038scheduler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/038scheduler.cc b/038scheduler.cc
index d32fb76a..5925abab 100644
--- a/038scheduler.cc
+++ b/038scheduler.cc
@@ -281,6 +281,7 @@ ROUTINE_STATE,
 Recipe_ordinal["routine-state"] = ROUTINE_STATE;
 :(before "End Primitive Recipe Implementations")
 case ROUTINE_STATE: {
+  products.resize(1);
   if (SIZE(ingredients) != 1) {
     raise << current_recipe_name() << ": 'routine-state' requires exactly one ingredient, but got " << current_instruction().to_string() << '\n' << end();
     break;
@@ -297,7 +298,6 @@ case ROUTINE_STATE: {
       break;
     }
   }
-  products.resize(1);
   products.at(0).push_back(result);
   break;
 }