aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scaling.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/scaling.c b/src/scaling.c
index 490afb59..78cfed6b 100644
--- a/src/scaling.c
+++ b/src/scaling.c
@@ -209,18 +209,18 @@ int linear_scale(const RefList *list1, const RefList *list2, double *G)
}
int nb = 0;
- for ( refl1 = first_refl_const(list1, &iter);
- refl1 != NULL;
- refl1 = next_refl_const(refl1, iter) )
+ for ( refl2 = first_refl_const(list2, &iter);
+ refl2 != NULL;
+ refl2 = next_refl_const(refl2, iter) )
{
signed int h, k, l;
double Ih1, Ih2;
double esd1, esd2;
nb++;
- get_indices(refl1, &h, &k, &l);
- refl2 = find_refl(list2, h, k, l);
- if ( refl2 == NULL ) {
+ get_indices(refl2, &h, &k, &l);
+ refl1 = find_refl(list1, h, k, l);
+ if ( refl1 == NULL ) {
continue;
}