From: jmt Date: Thu, 24 Dec 2009 16:11:39 +0000 (+0000) Subject: OSG ref_ptr fix: use .get() explicitly. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a007d9638761132cf81743f41b8fdd1aa5f7ee2;p=flightgear.git OSG ref_ptr fix: use .get() explicitly. --- diff --git a/src/Instrumentation/groundradar.cxx b/src/Instrumentation/groundradar.cxx index 937fa2614..56c7d0902 100644 --- a/src/Instrumentation/groundradar.cxx +++ b/src/Instrumentation/groundradar.cxx @@ -197,7 +197,7 @@ osg::Geometry *GroundRadar::addPavementGeometry(const FGPavement* aPavement, dou geo_inverse_wgs_84(aTowerLat, aTowerLon, (*loopBegin)->mPos.getLatitudeDeg(), (*loopBegin)->mPos.getLongitudeDeg(), &az1, &az2, &dist_m); osg::Vec3 p1 = fromPolar(az1, dist_m * aScale) + osg::Vec3(TextureHalfSize, TextureHalfSize, 0); pts->push_back( p1 ); - polygon->setVertexArray( pts ); + polygon->setVertexArray( pts.get() ); polygon->addPrimitiveSet( new osg::DrawArrays( osg::PrimitiveSet::POLYGON, 0, pts->size() ) );