From 2f8ee74e6933b979b964260f9f0d62d5339290e6 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Sat, 30 Nov 2013 10:40:00 +0000
Subject: [PATCH] step in rewritting

---
 src/cell.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cell.c b/src/cell.c
index 246866b..32fb9ea 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);
         }

--
Gitblit v1.9.3