Why not just use the provided constructor, then we know for sure what the
values will be initialized to.
This commit is contained in:
parent
2631cf9cc5
commit
ae928dde80
1 changed files with 1 additions and 3 deletions
|
@ -351,9 +351,7 @@ bool runway_instr::boundOutsidePoints(sgdVec3 v, sgdVec3 m) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void runway_instr::drawArrow() {
|
void runway_instr::drawArrow() {
|
||||||
Point3D ac,rwy;
|
Point3D ac(0.0), rwy(0.0);
|
||||||
memset(&ac,0,sizeof(ac));
|
|
||||||
memset(&rwy,0,sizeof(rwy));
|
|
||||||
ac.setlat(current_aircraft.fdm_state->get_Latitude_deg());
|
ac.setlat(current_aircraft.fdm_state->get_Latitude_deg());
|
||||||
ac.setlon(current_aircraft.fdm_state->get_Longitude_deg());
|
ac.setlon(current_aircraft.fdm_state->get_Longitude_deg());
|
||||||
rwy.setlat(runway._lat);
|
rwy.setlat(runway._lat);
|
||||||
|
|
Loading…
Reference in a new issue