Fixed crash in loading osg files which have object types which arn't recognized.

This commit is contained in:
Robert Osfield 2002-06-06 14:00:15 +00:00
parent 99580f2212
commit 9e982e6b32

View File

@ -371,7 +371,7 @@ osg::Object* Registry::readObjectOfType(const osg::Object& compObj,Input& fr)
}
if (!iteratorAdvanced) ++fr;
if (!iteratorAdvanced) fr.advanceOverCurrentFieldOrBlock();
}
++fr; // step over trailing '}'
@ -439,7 +439,7 @@ osg::Object* Registry::readObject(DotOsgWrapperMap& dowMap,Input& fr)
}
if (!iteratorAdvanced) ++fr;
if (!iteratorAdvanced) fr.advanceOverCurrentFieldOrBlock();
}
++fr; // step over trailing '}'