From e016c401c98b6a33392b551b2c40fccded21efe3 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Thu, 23 Feb 2012 14:43:30 +0000 Subject: [PATCH] bond data removed --- src/cell.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cell.c b/src/cell.c index b3d90e4..1d66bc6 100644 --- a/src/cell.c +++ b/src/cell.c @@ -76,8 +76,8 @@ ts_bool cell_add_vertex(ts_cell *cell, ts_vertex *vtx){ cell->data->nvertex++; cell->data->vertex=(ts_vertex **)realloc(cell->data->vertex,cell->data->nvertex*sizeof(ts_vertex *)); - if(vtx->data->neigh == NULL){ - fatal("Reallocation of memory failed during insertion of vertex neighbour in vertex_add_neighbour",3); + if(cell->data->vertex == NULL){ + fatal("Reallocation of memory failed during insertion of vertex in cell_add_vertex",3); } cell->data->vertex[cell->data->nvertex-1]=vtx; return TS_SUCCESS; -- Gitblit v1.9.3