diff --git a/image_analysis/IndexAndRefine.cpp b/image_analysis/IndexAndRefine.cpp index 3db59d91..781b42a8 100644 --- a/image_analysis/IndexAndRefine.cpp +++ b/image_analysis/IndexAndRefine.cpp @@ -152,7 +152,7 @@ void IndexAndRefine::QuickPredictAndIntegrate(DataMessage &msg, latt = outcome.lattice_candidate->Multiply(gon->GetTransformation(-msg.number)); } - auto nrefl = prediction.Calc(experiment, latt, settings_prediction); + auto nrefl = prediction.Calc(outcome.experiment, latt, settings_prediction); auto refl_ret = BraggIntegrate2D(outcome.experiment, image, prediction.GetReflections(), nrefl, msg.number); constexpr size_t kMaxReflections = 10000;