diff --git a/examples/osgmanipulator/osgmanipulator.cpp b/examples/osgmanipulator/osgmanipulator.cpp index 303dc7ea1..43352df48 100644 --- a/examples/osgmanipulator/osgmanipulator.cpp +++ b/examples/osgmanipulator/osgmanipulator.cpp @@ -415,12 +415,12 @@ int main( int argc, char **argv ) const osg::ref_ptr antiSquish = new osgManipulator::AntiSquish(); - group->addChild(antiSquish); + group->addChild(antiSquish.get()); const osg::ref_ptr node = new osg::Node(); node->setInitialBound(osg::BoundingSphere(osg::Vec3(0.0, 0.0, 0.0), 1.0)); - antiSquish->addChild(node); + antiSquish->addChild(node.get()); group->getBound();