diff --git a/include/osgUtil/PolytopeIntersector b/include/osgUtil/PolytopeIntersector index 8c1357dff..4e2a0b4ef 100644 --- a/include/osgUtil/PolytopeIntersector +++ b/include/osgUtil/PolytopeIntersector @@ -46,7 +46,11 @@ class OSGUTIL_EXPORT PolytopeIntersector : public Intersector struct Intersection { - Intersection() {} + Intersection(): + distance(0.0), + maxDistance(0.0), + numIntersectionPoints(0), + primitiveIndex(0) {} bool operator < (const Intersection& rhs) const {