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:
parent
8f64d4820c
commit
2a03296e5e
1 changed files with 8 additions and 7 deletions
|
@ -436,14 +436,15 @@ public:
|
||||||
FGGroundCache::GroundProperty mGroundProperty;
|
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()
|
FGGroundCache::~FGGroundCache()
|
||||||
|
|
Loading…
Add table
Reference in a new issue