diff options
-rw-r--r-- | src/lib/tng_io.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |