diff --git a/ApplicationCode/Commands/WellPathCommands/RicWellPathExportCompletionDataFeature.cpp b/ApplicationCode/Commands/WellPathCommands/RicWellPathExportCompletionDataFeature.cpp index ff3cbed1d9..a04197f861 100644 --- a/ApplicationCode/Commands/WellPathCommands/RicWellPathExportCompletionDataFeature.cpp +++ b/ApplicationCode/Commands/WellPathCommands/RicWellPathExportCompletionDataFeature.cpp @@ -519,7 +519,7 @@ void RicWellPathExportCompletionDataFeature::computeWellSegments(RifEclipseOutpu formatter.comment(QString("%1 : Sub index %2 - Lateral %3").arg(location.fishbonesSubs->name()).arg(location.subIndex).arg(lateral.lateralIndex)); lateral.branchNumber = ++branchNum; - std::vector& coords = location.fishbonesSubs->coordsForLateral(location.subIndex, lateral.lateralIndex); + std::vector coords = location.fishbonesSubs->coordsForLateral(location.subIndex, lateral.lateralIndex); std::vector intersections = findIntersections(caseToApply->eclipseCaseData(), coords); filterIntersections(&intersections);