aboutsummaryrefslogtreecommitdiff
path: root/src/partial_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partial_sim.c')
-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);
}
}