mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed wrong index guarding
This commit is contained in:
@@ -217,7 +217,7 @@ PdmObjectHandle* PdmReferenceHelper::objectFromReferenceStringList(PdmObjectHand
|
||||
|
||||
if (index > -1)
|
||||
{
|
||||
if (index >= childObjects.size() - 1)
|
||||
if (index > childObjects.size() - 1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user