From 719c9febac2eaff9483fda487b57684afbb59bb2 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Wed, 05 Mar 2014 16:47:50 +0000 Subject: [PATCH] dont know --- src/cell.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cell.c b/src/cell.c index 246866b..fcd974f 100644 --- a/src/cell.c +++ b/src/cell.c @@ -105,7 +105,7 @@ /* resize memory. potentionally time consuming */ cell->nvertex--; cell->vertex=(ts_vertex **)realloc(cell->vertex,cell->nvertex*sizeof(ts_vertex *)); - if(vtx->neigh == NULL && vtx->neigh_no!=0) + if(vtx->neigh == NULL && vtx->neigh->n!=0) if(cell->vertex == NULL){ fatal("Reallocation of memory failed during removal of vertex in cell_remove_vertex",3); } @@ -147,7 +147,7 @@ } // Now we check whether we didn't come close to some other vertices in the same // cell! - if(cell_occupation>1){ + if(cell_occupation>0){ for(l=0;l<cell_occupation;l++){ //carefull with this checks! -- Gitblit v1.9.3