From f5329eeac6b991e42507c5ffe87ab910028fd594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Jensen?= Date: Tue, 6 Nov 2018 10:39:30 +0100 Subject: [PATCH] #3602 Temp LGR. Add forgotten ampersand --- ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp b/ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp index 0af44a3976..a6038de66a 100644 --- a/ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp +++ b/ApplicationCode/Commands/RicCreateTemporaryLgrFeature.cpp @@ -231,7 +231,7 @@ void RicCreateTemporaryLgrFeature::createLgr(const LgrInfo& lgrInfo, RigMainGrid size_t mainI = lgrInfo.mainGridStartCell.i() + lgrI / lgrSizePerMainCell.i(); size_t mainCellIndex = mainGrid->cellIndexFromIJK(mainI, mainJ, mainK); - auto mainGridCell = mainGrid->globalCellArray()[mainCellIndex]; + auto& mainGridCell = mainGrid->globalCellArray()[mainCellIndex]; mainGridCell.setSubGrid(localGrid); RigCell& cell = mainGrid->globalCellArray()[cellStartIndex + gridLocalCellIndex];