]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/fgclouds.cxx
Fix minor memory leak in terrainsampler
[flightgear.git] / src / Environment / fgclouds.cxx
index 9b689d443af37f5c925706baa7b24e046fe97654..6cc4d49ef4f2fda9992d4cf0cfb742a841dc96be 100644 (file)
@@ -161,7 +161,7 @@ double FGClouds::buildCloud(SGPropertyNode *cloud_def_root, SGPropertyNode *box_
                                y = w * (y - 0.5) + pos[1]; // E/W
                                z = h * z + pos[2]; // Up/Down. pos[2] is the cloudbase
 
-                               SGVec3f newpos = SGVec3f(x, y, z);
+                               //SGVec3f newpos = SGVec3f(x, y, z);
                                SGNewCloud cld = SGNewCloud(texture_root, cld_def);
 
                                //layer->addCloud(newpos, cld.genCloud());