summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-06-18 08:52:11 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-06-18 08:52:11 (GMT)
commit4219a66867ad23cf0553cfc15d5163882c29f433 (patch)
treea3629fc495e83aa3476daa8859f64f8438ffeaa8
parentef6813cb08d86cc75b6a7aef7bdb08dd2e9a2f7b (diff)
Fixed loop going on forever.
Change-Id: I4248f3ba571754a8fe620b9cc239d2d241c341a8
-rw-r--r--src/lib/tng_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index c8ded5b..1f4ccc5 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -8101,7 +8101,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_cnt_set
if(&tng_data->molecules[i] == molecule)
{
index = i;
- i = 0;
+ break;
}
}
if(index == -1)
contact: Jan Huwald // Impressum