about summary refs log tree commit diff stats
path: root/045space_surround.cc
diff options
context:
space:
mode:
Diffstat (limited to '045space_surround.cc')
-rw-r--r--045space_surround.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/045space_surround.cc b/045space_surround.cc
index 880c350e..940f82b8 100644
--- a/045space_surround.cc
+++ b/045space_surround.cc
@@ -34,7 +34,7 @@ long long int space_base(const reagent& x, long long int space_index, long long
   if (space_index == 0) {
     return base;
   }
-  long long int result = space_base(x, space_index-1, Memory[base+1]);
+  long long int result = space_base(x, space_index-1, get_or_insert(Memory, base+1));
   return result;
 }