]> git.mxchange.org Git - simgear.git/blobdiff - simgear/ephemeris/stardata.cxx
Modified Files:
[simgear.git] / simgear / ephemeris / stardata.cxx
index 86583ea4e48c79faa87a049051167b201d19b515..7f04b8b21055f7cb93824ee8c4d2ad2694e9741f 100644 (file)
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 // Library General Public License for more details.
 //
-// You should have received a copy of the GNU Library General Public
-// License along with this library; if not, write to the
-// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-// Boston, MA  02111-1307, USA.
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -57,7 +56,7 @@ bool SGStarData::load() {
 
     // -dw- avoid local data > 32k error by dynamic allocation of the
     // array, problem for some compilers
-    stars = new sgdVec3[SG_MAX_STARS];
+    stars = new SGVec3d[SG_MAX_STARS];
 
      // build the full path name to the stars data base file
     data_path.append( "stars" );
@@ -118,7 +117,7 @@ bool SGStarData::load() {
 
        // cout << " star data = " << ra << " " << dec << " " << mag << endl;
 
-       sgdSetVec3( stars[nstars], ra, dec, mag );
+       sgdSetVec3( stars[nstars].sg(), ra, dec, mag );
 
        ++nstars;
     }