summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-12-02 14:25:42 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-12-02 14:25:42 (GMT)
commit7e6f14f9f4d8755f5430e4771d21469fe7401e41 (patch)
tree8ec60d4415b2a4e0647995361ef2f15654664e08 /src
parent0021b1e62ea5c329ee523867bc2f9a5f695c4970 (diff)
Fix to tng_residue_atoms_get()
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