diff --git a/src/Cockpit/hud_rwy.cxx b/src/Cockpit/hud_rwy.cxx index 880a0978f..2fd326a6f 100644 --- a/src/Cockpit/hud_rwy.cxx +++ b/src/Cockpit/hud_rwy.cxx @@ -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);