aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-11 10:49:14 -0700
committerThomas White <taw@bitwiz.org.uk>2010-06-11 10:49:14 -0700
commitd6f0abbeaca67be117f901f2fec1e0ee015e364b (patch)
tree033d51f5fc596a0eec94b2f9a714986d98aaeb39 /src/peaks.c
parent58d7328f3fc327289b7a24f91124372db3e9b730 (diff)
SPOT
Diffstat (limited to 'src/peaks.c')
-rw-r--r--src/peaks.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/peaks.c b/src/peaks.c
index bdc99090..19894ca7 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -519,7 +519,6 @@ void output_intensities(struct image *image, UnitCell *cell,
double bsx, bsy, bsz;
double csx, csy, csz;
double a, b, c, al, be, ga;
- int n_hits = image->n_hits;
struct reflhit *hits = image->hits;
if ( image->n_hits == 0 ) find_projected_peaks(image, cell);
@@ -555,7 +554,7 @@ void output_intensities(struct image *image, UnitCell *cell,
printf("f0 = invalid\n");
}
- for ( i=0; i<n_hits; i++ ) {
+ for ( i=0; i<image->n_hits; i++ ) {
float x, y, intensity;
double d;
@@ -625,7 +624,7 @@ void output_intensities(struct image *image, UnitCell *cell,
f = image_get_feature(image->features, i);
- for ( j=0; j<n_hits; j++ ) {
+ for ( j=0; j<image->n_hits; j++ ) {
double d;