aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index de27308c..0dda66ed 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -304,6 +304,7 @@ int remove_flagged_crystals(struct image *image)
}
image->n_crystals--;
n_bad++;
+ i--;
}
}