From ed870aac76096898035e880f34d899f75f878d6f Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 30 Nov 1998 17:42:37 +0000 Subject: [PATCH] using an uninitialized variable bug fixed. --- Astro/star.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5