]> git.mxchange.org Git - flightgear.git/commitdiff
Why not just use the provided constructor, then we know for sure what the
authorcurt <curt>
Sun, 16 Oct 2005 11:11:06 +0000 (11:11 +0000)
committercurt <curt>
Sun, 16 Oct 2005 11:11:06 +0000 (11:11 +0000)
values will be initialized to.

src/Cockpit/hud_rwy.cxx

index 880a0978fa2c885c4cc013a01faf7ee29cf87284..2fd326a6f43e09aecff9001df6a12bfa9b8cfaec 100644 (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);