diff --git a/cell.cpp b/cell.cpp index 4e3a5872..c5fcfb87 100644 --- a/cell.cpp +++ b/cell.cpp @@ -1431,7 +1431,8 @@ int celldistance(cell *c1, cell *c2) { if(sphere || quotient == 1) { celllister cl(c1, 64, 1000, c2); - return cl.getdist(c2); + for(int i=0; i