summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-07-01 09:39:06 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-07-01 09:39:06 (GMT)
commite6e85d562829bcae40f9b360937b491699736b92 (patch)
tree716948b5310df7e4eec60cb7786df4c96f4590b9 /src
parentb56e1d189bebd6d959fcd8756b17753c089b5340 (diff)
Fix bug causing reading next frame not to stop.
Change-Id: I132d22f4e7e7dbdea14351e2e813a391590d58b9
Diffstat (limited to 'src')
-rw-r--r--src/lib/tng_io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index fa4d3e5..d0028bd 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -17379,6 +17379,10 @@ tng_function_status DECLSPECDLLEXPORT tng_util_particle_data_next_frame_read
{
return(stat);
}
+ if(frame_set->first_frame + frame_set->n_frames - 1 < i)
+ {
+ return(TNG_FAILURE);
+ }
i = frame_set->first_frame;
}
}
@@ -17539,6 +17543,10 @@ tng_function_status DECLSPECDLLEXPORT tng_util_non_particle_data_next_frame_read
{
return(stat);
}
+ if(frame_set->first_frame + frame_set->n_frames - 1 < i)
+ {
+ return(TNG_FAILURE);
+ }
i = frame_set->first_frame;
}
}
contact: Jan Huwald // Impressum