From 049ac4ef9845fc87bef52265e25b024598996e6f Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Thu, 28 Nov 2013 11:43:21 +0100 Subject: Another minor fix. diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 23b1620..c6d70f2 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -7336,6 +7336,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_system_copy(tng_trajectory_t } tng_data_dest->n_molecules = 0; + tng_data_dest->n_particles = 0; molecule_temp = realloc(tng_data_dest->molecules, sizeof(struct tng_molecule) * tng_data_src->n_molecules); -- cgit v0.10.1