aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/partial_sim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index 8d885901..7a60f5c8 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -125,8 +125,10 @@ static void calculate_partials(RefList *partial, double osf,
} else {
If = get_intensity(rfull);
if ( random_intensities ) {
+ lock_reflection(rfull);
int red = get_redundancy(rfull);
set_redundancy(rfull, red+1);
+ unlock_reflection(rfull);
}
}