about summary refs log tree commit diff stats
path: root/035lookup.cc
diff options
context:
space:
mode:
Diffstat (limited to '035lookup.cc')
-rw-r--r--035lookup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/035lookup.cc b/035lookup.cc
index 0f40f89e..7247b6a7 100644
--- a/035lookup.cc
+++ b/035lookup.cc
@@ -85,7 +85,6 @@ void lookup_memory_core(reagent& x, bool check_for_null) {
   if (x.value == 0) return;
   trace("mem") << "location " << x.value << " is " << no_scientific(get_or_insert(Memory, x.value)) << end();
   x.set_value(get_or_insert(Memory, x.value));
-  drop_from_type(x, "address");
   if (check_for_null && x.value == 0) {
     if (Current_routine) {
       raise << maybe(current_recipe_name()) << "tried to lookup 0 in '" << to_original_string(current_instruction()) << "'\n" << end();
@@ -95,6 +94,7 @@ void lookup_memory_core(reagent& x, bool check_for_null) {
       raise << "tried to lookup 0\n" << end();
     }
   }
+  drop_from_type(x, "address");
   drop_one_lookup(x);
 }