diff --git a/src/osgUtil/CullVisitor.cpp b/src/osgUtil/CullVisitor.cpp index 3112cdf2c..a955aef4b 100644 --- a/src/osgUtil/CullVisitor.cpp +++ b/src/osgUtil/CullVisitor.cpp @@ -58,6 +58,7 @@ CullVisitor::CullVisitor(): } CullVisitor::CullVisitor(const CullVisitor& rhs): + osg::Object(rhs), NodeVisitor(rhs), CullStack(rhs), _currentStateGraph(NULL), diff --git a/src/osgUtil/LineSegmentIntersector.cpp b/src/osgUtil/LineSegmentIntersector.cpp index 230062b4c..2ae8ba0f7 100644 --- a/src/osgUtil/LineSegmentIntersector.cpp +++ b/src/osgUtil/LineSegmentIntersector.cpp @@ -225,7 +225,7 @@ LineSegmentIntersector::LineSegmentIntersector(const osg::Vec3d& start, const os LineSegmentIntersector::LineSegmentIntersector(CoordinateFrame cf, const osg::Vec3d& start, const osg::Vec3d& end, LineSegmentIntersector* parent, osgUtil::Intersector::IntersectionLimit intersectionLimit): Intersector(cf, intersectionLimit), - _parent(0), + _parent(parent), _start(start), _end(end) {