about summary refs log tree commit diff stats
path: root/021check_instruction.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-04-04 10:49:13 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-04-04 10:49:13 -0700
commitba1fb981f6ce186e37c73e26ec79925bbaf991eb (patch)
tree081ea9387520005585ca226677a86ed94215a366 /021check_instruction.cc
parente62aa7e305a0ea8ae2c79522588c3bbc80fa4dc3 (diff)
downloadmu-ba1fb981f6ce186e37c73e26ec79925bbaf991eb.tar.gz
3811
Diffstat (limited to '021check_instruction.cc')
-rw-r--r--021check_instruction.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc
index 48fe3adf..8b34b55f 100644
--- a/021check_instruction.cc
+++ b/021check_instruction.cc
@@ -21,8 +21,8 @@ void check_instruction(const recipe_ordinal r) {
     switch (inst.operation) {
       // Primitive Recipe Checks
       case COPY: {
-        if (SIZE(inst.products) != SIZE(inst.ingredients)) {
-          raise << maybe(get(Recipe, r).name) << "ingredients and products should match in '" << inst.original_string << "'\n" << end();
+        if (SIZE(inst.products) > SIZE(inst.ingredients)) {
+          raise << maybe(get(Recipe, r).name) << "too many products in '" << inst.original_string << "'\n" << end();
           break;
         }
         for (int i = 0;  i < SIZE(inst.ingredients);  ++i) {