mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-04 13:16:56 -06:00
Fix crash in RivWellPathPartMgr following valve updates
This commit is contained in:
1 parent
f85e1bdb98
commit
256e5de30c
1 file changed
+1
-1
@@ -409,7 +409,7 @@ void RivWellPathPartMgr::appendPerforationValvesToModel(cvf::ModelBasicList* mod
|
||||
radii[0] = wellPathRadius;
|
||||
bool inner = false;
|
||||
int nInners = 0;
|
||||
for (size_t i = 1; i < size; i += 2)
|
||||
for (int i = 1; i < size - 1; i += 2)
|
||||
{
|
||||
if (inner && valve->componentType() == RiaDefines::AICD && nInners > 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user