diff options
Diffstat (limited to '021check_instruction.cc')
-rw-r--r-- | 021check_instruction.cc | 4 |
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) { |