From a7a6d6d521ea3006963ae3f1a3fd8975cf3ba9b2 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Thu, 12 Jul 2012 16:26:28 +0000
Subject: [PATCH] code cleanup

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

diff --git a/src/cell.c b/src/cell.c
index 18586ee..47d7fab 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -49,9 +49,9 @@
     ts_uint cellidx;
     ts_uint ncx, ncy,ncz;
     ts_cell_list *clist=vesicle->clist;
-    ncx=(ts_uint)((vtx->data->x-vesicle->cm[0])*clist->dcell+clist->shift);
-    ncy=(ts_uint)((vtx->data->y-vesicle->cm[1])*clist->dcell+clist->shift);
-    ncz=(ts_uint)((vtx->data->z-vesicle->cm[2])*clist->dcell+clist->shift);
+    ncx=(ts_uint)((vtx->x-vesicle->cm[0])*clist->dcell+clist->shift);
+    ncy=(ts_uint)((vtx->y-vesicle->cm[1])*clist->dcell+clist->shift);
+    ncz=(ts_uint)((vtx->z-vesicle->cm[2])*clist->dcell+clist->shift);
 
     if(ncx == clist->ncmax[0]-1 || ncx == 2){
         fatal("Vesicle is positioned outside the cell covered area. Coordinate x is the problem.",1500);

--
Gitblit v1.9.3