diff options
Diffstat (limited to 'src/geometry.c')
-rw-r--r-- | src/geometry.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/geometry.c b/src/geometry.c index 9f9b953c..1cf839c2 100644 --- a/src/geometry.c +++ b/src/geometry.c @@ -263,10 +263,11 @@ double integrate_all(struct image *image, RefList *reflections) { double itot = 0.0; Reflection *refl; + RefListIterator *iter; - for ( refl = first_refl(reflections); + for ( refl = first_refl(reflections, &iter); refl != NULL; - refl = next_refl(refl) ) { + refl = next_refl(refl, iter) ) { float x, y, intensity; double xp, yp; |