summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/tng_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 7084b4a..f773e73 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -8097,7 +8097,8 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_atoms_get
TNG_ASSERT(atoms, "TNG library: atoms must not be a NULL pointer");
TNG_ASSERT(n, "TNG library: n must not be a NULL pointer");
- **atoms = &molecule->atoms[residue->atoms_offset];
+ *atoms = &molecule->atoms;
+ *atoms += residue->atoms_offset;
*n = residue->n_atoms;
return(TNG_SUCCESS);
contact: Jan Huwald // Impressum