diff options
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r-- | src/pattern_sim.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 433a7589..889d8e9d 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -306,7 +306,9 @@ int main(int argc, char *argv[]) free(image.sfacs); free(image.twotheta); - if ( n_images && (number >= n_images) ) done = 1; + number++; + + if ( n_images && (number > n_images) ) done = 1; } while ( !done ); |