mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Linux fix
This commit is contained in:
parent
2c4b1e453d
commit
1a8f4e1829
@ -121,9 +121,10 @@ int RiaSimWellBranchTools::clampBranchIndex(const QString& simWellName, int bran
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (branchIndexValue >= branches.size())
|
||||
int maxIndexValue = static_cast<int>(branches.size()) - 1;
|
||||
if (branchIndexValue > maxIndexValue)
|
||||
{
|
||||
branchIndexValue = static_cast<int>(branches.size()) - 1;
|
||||
branchIndexValue = maxIndexValue;
|
||||
}
|
||||
|
||||
return branchIndexValue;
|
||||
|
Loading…
Reference in New Issue
Block a user