diff --git a/cell.cpp b/cell.cpp index 2f64e3bb..5d07129b 100644 --- a/cell.cpp +++ b/cell.cpp @@ -1293,6 +1293,12 @@ EX vector build_shortest_path(cell *c1, cell *c2) { } EX void clearCellMemory() { + #if MAXMDIM >= 4 + if(intra::in) { + intra::erase_all_maps(); + return; + } + #endif for(int i=0; i need_to_save; EX void prepare_need_to_save() {