Fixed wrong index guarding

This commit is contained in:
Magne Sjaastad
2015-09-18 19:39:17 +02:00
parent a4b57a11a4
commit 53f1765fd7

View File

@@ -217,7 +217,7 @@ PdmObjectHandle* PdmReferenceHelper::objectFromReferenceStringList(PdmObjectHand
if (index > -1)
{
if (index >= childObjects.size() - 1)
if (index > childObjects.size() - 1)
{
return NULL;
}