]> git.mxchange.org Git - simgear.git/commitdiff
Intialize the center to prevent a 'may be used uninitialized' warning
authorErik Hofman <erik@ehofman.com>
Mon, 19 Dec 2011 14:25:58 +0000 (15:25 +0100)
committerErik Hofman <erik@ehofman.com>
Mon, 19 Dec 2011 14:25:58 +0000 (15:25 +0100)
simgear/math/SGSphere.hxx

index 7d8b3ab1b0d50dfbb2c7d1eb365fde3b0f8be046..7d6a8d3c8be5387c456b5951def92784aeb1aae7 100644 (file)
@@ -22,6 +22,7 @@ template<typename T>
 class SGSphere {
 public:
   SGSphere() :
+    _center(0.0, 0.0, 0.0),
     _radius(-1)
   { }
   SGSphere(const SGVec3<T>& center, const T& radius) :