]> git.mxchange.org Git - simgear.git/commitdiff
Intialize to prevent a 'may be used uninitialized' warning
authorErik Hofman <erik@ehofman.com>
Mon, 19 Dec 2011 14:28:11 +0000 (15:28 +0100)
committerErik Hofman <erik@ehofman.com>
Mon, 19 Dec 2011 14:28:11 +0000 (15:28 +0100)
simgear/misc/texcoord.cxx

index 4a19fb44740dbe5674019ee80156c657bfc8f428..f56a0e7aeeaf4976355829f24c786f4934a60e65 100644 (file)
@@ -213,7 +213,8 @@ std::vector<SGVec2f> sgCalcTexCoords( double centerLat, const std::vector<SGGeod
     // cout << "degree_height = " << degree_height << endl;
 
     // find min/max of fan
-    SGVec2f tmin, tmax;
+    SGVec2f tmin(0.0, 0.0);
+    SGVec2f tmax(0.0, 0.0);
     bool first = true;
 
     int i;