about summary refs log tree commit diff stats
path: root/056shape_shifting_recipe.cc
diff options
context:
space:
mode:
Diffstat (limited to '056shape_shifting_recipe.cc')
-rw-r--r--056shape_shifting_recipe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/056shape_shifting_recipe.cc b/056shape_shifting_recipe.cc
index 7f74136d..917fce5c 100644
--- a/056shape_shifting_recipe.cc
+++ b/056shape_shifting_recipe.cc
@@ -75,7 +75,7 @@ skip_shape_shifting_variants:;
 //: recipes can be called
 
 :(before "End Instruction Operation Checks")
-if (contains_key(Recipe, inst.operation) && inst.operation >= MAX_PRIMITIVE_RECIPES
+if (contains_key(Recipe, inst.operation) && !is_primitive(inst.operation)
     && any_type_ingredient_in_header(inst.operation)) {
   raise << maybe(caller.name) << "instruction '" << inst.name << "' has no valid specialization\n" << end();
   return;