From: curt Date: Mon, 30 Nov 1998 17:42:37 +0000 (+0000) Subject: using an uninitialized variable bug fixed. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ed870aac76096898035e880f34d899f75f878d6f;p=simgear.git using an uninitialized variable bug fixed. --- diff --git a/Astro/star.cxx b/Astro/star.cxx index f8ce2d3a..f2b347e2 100644 --- a/Astro/star.cxx +++ b/Astro/star.cxx @@ -69,7 +69,7 @@ void Star::updatePosition(fgTIME *t) xv = cos(eccAnom) - e; yv = sqrt (1.0 - e*e) * sin(eccAnom); v = atan2 (yv, xv); // the sun's true anomaly - r = sqrt (xv*xv + yv*yv); // and its distance + distance = r = sqrt (xv*xv + yv*yv); // and its distance longitude = v + w; // the sun's true longitude