From 9e982e6b32c2730d57f987049f2640fc30ab1124 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 6 Jun 2002 14:00:15 +0000 Subject: [PATCH] Fixed crash in loading osg files which have object types which arn't recognized. --- src/osgDB/Registry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index 35d565552..54cedffd8 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -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 '}'