From d9cb01f2bbcaf704b11d7d8c926f2634c04db928 Mon Sep 17 00:00:00 2001
From: mihaf <miha.fosnaric@gmail.com>
Date: Mon, 10 Mar 2014 11:12:11 +0000
Subject: [PATCH] added assigning new values to restore from dump

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

diff --git a/src/poly.c b/src/poly.c
index 1ddcec7..2057db1 100644
--- a/src/poly.c
+++ b/src/poly.c
@@ -41,7 +41,7 @@
 ts_poly_list *init_poly_list(ts_uint n_poly, ts_uint n_mono, ts_vertex_list *vlist){
 	ts_poly_list *poly_list=(ts_poly_list *)calloc(1,sizeof(ts_poly_list));
 	poly_list->poly	= (ts_poly **)calloc(n_poly,sizeof(ts_poly *));
-	ts_uint i=0,j=0, idx;
+	ts_uint i=0,j=0; //idx;
 	ts_uint gvtxi;
 	ts_double xnorm,ynorm,znorm,normlength;
 
@@ -81,7 +81,7 @@
 	}
 
 		//index correction for polymeres. Important, since each vtx has to have unique id
-	idx=vlist->n;
+/*	idx=vlist->n;
 	for(i=0;i<n_poly;i++){
 		for(j=0;j<n_mono;j++,idx++){
 
@@ -89,7 +89,7 @@
 
 		}
 	}
-
+*/
 
 	return poly_list;
 }

--
Gitblit v1.9.3