diff --git a/simgear/ephemeris/ephemeris.cxx b/simgear/ephemeris/ephemeris.cxx index 1469c28f..86a6047e 100644 --- a/simgear/ephemeris/ephemeris.cxx +++ b/simgear/ephemeris/ephemeris.cxx @@ -28,12 +28,14 @@ // Constructor FGEphemeris::FGEphemeris( void ) { our_sun = new Star; + moon = new Moon; } // Destructor FGEphemeris::~FGEphemeris( void ) { delete our_sun; + delete moon; } @@ -41,5 +43,6 @@ FGEphemeris::~FGEphemeris( void ) { // time void FGEphemeris::update( FGTime *t ) { our_sun->updatePosition( t ); + moon->updatePosition( t, our_sun ); } diff --git a/simgear/ephemeris/ephemeris.hxx b/simgear/ephemeris/ephemeris.hxx index c681fcc1..59c876f0 100644 --- a/simgear/ephemeris/ephemeris.hxx +++ b/simgear/ephemeris/ephemeris.hxx @@ -29,11 +29,13 @@ #include