mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash in RivWellPathPartMgr following valve updates
This commit is contained in:
parent
f85e1bdb98
commit
256e5de30c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user