1
0
Fork 0

Fix some uninitialized value warnings.

This commit is contained in:
Mathias Froehlich 2010-05-29 17:25:02 +02:00
parent 721566a6e7
commit 917524160b

View file

@ -89,6 +89,7 @@ const int ATC_NUM_TYPES = 1 + INVALID;
// DCL - new experimental ATC data store // DCL - new experimental ATC data store
struct ATCData { struct ATCData {
ATCData() : type(INVALID), cart(0, 0, 0), freq(0), range(0) {}
atc_type type; atc_type type;
SGGeod geod; SGGeod geod;
SGVec3d cart; SGVec3d cart;
@ -101,6 +102,7 @@ struct ATCData {
// perhaps we could use an FGRunway instead of this. // perhaps we could use an FGRunway instead of this.
// That wouldn't cache the orthopos though. // That wouldn't cache the orthopos though.
struct RunwayDetails { struct RunwayDetails {
RunwayDetails() : end1ortho(0, 0, 0), end2ortho(0, 0, 0), hdg(0), length(-1), width(-1) {}
SGGeod threshold_pos; SGGeod threshold_pos;
SGVec3d end1ortho; // ortho projection end1 (the threshold ATM) SGVec3d end1ortho; // ortho projection end1 (the threshold ATM)
SGVec3d end2ortho; // ortho projection end2 (the take off end in the current hardwired scheme) SGVec3d end2ortho; // ortho projection end2 (the take off end in the current hardwired scheme)