aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hrs-scaling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 44fd324a..a03cd93f 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -209,7 +209,7 @@ static double iterate_scale(struct image *images, int n,
double mc = 0.0;
double tval, rhb, vhb, uhb;
int bcomp;
- struct image *image_b = &images[a];
+ struct image *image_b = &images[b];
/* Matrix is symmetric */
if ( b > a ) continue;