From ae928dde80083357db485430e3530b4770708d36 Mon Sep 17 00:00:00 2001 From: curt Date: Sun, 16 Oct 2005 11:11:06 +0000 Subject: [PATCH] Why not just use the provided constructor, then we know for sure what the values will be initialized to. --- src/Cockpit/hud_rwy.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);