1
0
Fork 0

Mathias Frhlich:

I still work on getting the YASim models see the detailed environment
especially the carrier.

I have *forgotten* to initialize and to destruct the ground cache object!
Oooopppss!
This commit is contained in:
ehofman 2004-12-08 14:48:06 +00:00
parent ac27ead4a6
commit 8214364414
2 changed files with 19 additions and 0 deletions

View file

@ -37,6 +37,22 @@
#include "flight.hxx"
#include "groundcache.hxx"
FGGroundCache::FGGroundCache()
{
sgdSetVec3(cache_center, 0.0, 0.0, 0.0);
ground_radius = 0.0;
cache_ref_time = 0.0;
wire_id = 0;
sgdSetVec3(reference_wgs84_point, 0.0, 0.0, 0.0);
reference_vehicle_radius = 0.0;
found_ground = false;
}
FGGroundCache::~FGGroundCache()
{
cache_root.removeAllKids();
}
FGGroundCache::GroundProperty*
FGGroundCache::extractGroundProperty( ssgLeaf* l )
{

View file

@ -30,6 +30,9 @@
class FGGroundCache {
public:
FGGroundCache();
~FGGroundCache();
//////////////////////////////////////////////////////////////////////////
// Ground handling routines
//////////////////////////////////////////////////////////////////////////