From 20d1e4c9c513a866b236e8af86daf3f8bc420a63 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 23 Jun 2016 06:56:22 +0100 Subject: [PATCH] Added initializer --- src/osgSim/SphereSegment.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/osgSim/SphereSegment.cpp b/src/osgSim/SphereSegment.cpp index a614f78d1..a3ccfc05b 100644 --- a/src/osgSim/SphereSegment.cpp +++ b/src/osgSim/SphereSegment.cpp @@ -205,7 +205,10 @@ public: protected: - Spoke():_ss(0) + Spoke(): + _ss(0), + _azAngle(SphereSegment::MIN), + _elevAngle(SphereSegment::MIN) { init(); OSG_WARN<< @@ -215,7 +218,8 @@ protected: Spoke(const Spoke& rhs, const osg::CopyOp& co=osg:: CopyOp::SHALLOW_COPY): osg::Drawable(rhs,co), _ss(0), - _azAngle(rhs._azAngle), _elevAngle(rhs._elevAngle) + _azAngle(rhs._azAngle), + _elevAngle(rhs._elevAngle) { OSG_WARN<< "Warning: unexpected call to osgSim::SphereSegment::Spoke() copy constructor"<