about summary refs log tree commit diff stats
path: root/043new.cc
diff options
context:
space:
mode:
Diffstat (limited to '043new.cc')
-rw-r--r--043new.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/043new.cc b/043new.cc
index 74083660..64f6fb57 100644
--- a/043new.cc
+++ b/043new.cc
@@ -222,7 +222,7 @@ case ABANDON: {
   }
   long long int address = ingredients.at(0).at(0);
   reagent types = canonize(current_instruction().ingredients.at(0));
-  if (types.types.at(0) != Type_ordinal["address"]) {
+  if (types.types.empty() || types.types.at(0) != Type_ordinal["address"]) {
     raise << current_recipe_name() << ": first ingredient of 'abandon' should be an address, but got " << current_instruction().ingredients.at(0).original_string << '\n' << end();
     break;
   }