From 7f4f778bb126b698d293c26b376e210b1e2b5d11 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 26 Jun 2003 17:13:27 +0000 Subject: [PATCH] Explicitely initialize planets. --- simgear/ephemeris/ephemeris.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/simgear/ephemeris/ephemeris.cxx b/simgear/ephemeris/ephemeris.cxx index 3453127c..0a11aa6c 100644 --- a/simgear/ephemeris/ephemeris.cxx +++ b/simgear/ephemeris/ephemeris.cxx @@ -23,6 +23,8 @@ // $Id$ +#include + #include "ephemeris.hxx" @@ -37,6 +39,10 @@ SGEphemeris::SGEphemeris( const string &path ) { saturn = new Saturn; uranus = new Uranus; neptune = new Neptune; + nplanets = 7; + for ( int i = 0; i < nplanets; ++i ) { + sgdSetVec3( planets[i], 0.0, 0.0, 0.0 ); + } stars = new SGStarData( SGPath(path) ); } -- 2.39.5