1
0
Fork 0

Why not just use the provided constructor, then we know for sure what the

values will be initialized to.
This commit is contained in:
curt 2005-10-16 11:11:06 +00:00
parent 2631cf9cc5
commit ae928dde80

View file

@ -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);