1
0
Fork 0

initialize _material pointer in FGGroundCache

_material was uninitialized. This was causing a segfault with
as-yet-to-be-checked-in paging code; I don't know if it ever resulted
in a segfault with the old tile loader, but it certainly could have.
This commit is contained in:
timoore 2007-11-22 23:46:39 +00:00
parent 8f64d4820c
commit 2a03296e5e

View file

@ -436,14 +436,15 @@ public:
FGGroundCache::GroundProperty mGroundProperty;
};
FGGroundCache::FGGroundCache()
FGGroundCache::FGGroundCache() :
ground_radius(0.0),
cache_ref_time(0.0),
wire_id(0),
reference_wgs84_point(SGVec3d(0, 0, 0)),
reference_vehicle_radius(0.0),
found_ground(false),
_material(0)
{
ground_radius = 0.0;
cache_ref_time = 0.0;
wire_id = 0;
reference_wgs84_point = SGVec3d(0, 0, 0);
reference_vehicle_radius = 0.0;
found_ground = false;
}
FGGroundCache::~FGGroundCache()