From c46ab39d1e4c80cdb9d40639a2a2516b296ab6c1 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 6 Jul 2017 15:23:33 +0200 Subject: [PATCH] bugfix --- cell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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