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() {
Point3D ac,rwy;
memset(&ac,0,sizeof(ac));
memset(&rwy,0,sizeof(rwy));
Point3D ac(0.0), rwy(0.0);
ac.setlat(current_aircraft.fdm_state->get_Latitude_deg());
ac.setlon(current_aircraft.fdm_state->get_Longitude_deg());
rwy.setlat(runway._lat);