diff options
Diffstat (limited to '030container.cc')
-rw-r--r-- | 030container.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc index 0c3da911..e22fe4be 100644 --- a/030container.cc +++ b/030container.cc @@ -434,10 +434,12 @@ case PUT: { raise << maybe(get(Recipe, r).name) << "'put " << base.original_string << ", " << offset.original_string << "' should write to " << names_to_string_without_quotes(element.type) << " but '" << value.name << "' has type " << names_to_string_without_quotes(value.type) << '\n' << end(); break; } - if (!inst.products.empty() && inst.products.at(0).name != inst.ingredients.at(0).name) { + if (inst.products.empty()) break; // no more checks necessary + if (inst.products.at(0).name != inst.ingredients.at(0).name) { raise << maybe(get(Recipe, r).name) << "product of 'put' must be first ingredient '" << inst.ingredients.at(0).original_string << "', but got '" << inst.products.at(0).original_string << "'\n" << end(); break; } + // End PUT Product Checks break; } :(before "End Primitive Recipe Implementations") |