X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIBallistic.cxx;h=6d41d5d50fbc04cf3e4aef24405f85fa69be533e;hb=9d995907db00728da7eac9297ecbab93ed8a7400;hp=962795e88fc743e09ca074fa69fd001fc62bc33b;hpb=d70e26d87b5294315ca6d67b8c11fabe51abbc4b;p=flightgear.git diff --git a/src/AIModel/AIBallistic.cxx b/src/AIModel/AIBallistic.cxx index 962795e88..6d41d5d50 100644 --- a/src/AIModel/AIBallistic.cxx +++ b/src/AIModel/AIBallistic.cxx @@ -35,6 +35,7 @@ #include using namespace simgear; +using std::string; const double FGAIBallistic::slugs_to_kgs = 14.5939029372; const double FGAIBallistic::slugs_to_lbs = 32.1740485564; @@ -66,8 +67,7 @@ _report_collision(false), _report_impact(false), _external_force(false), _report_expiry(false), -_impact_report_node(fgGetNode("/ai/models/model-impact", true)), -_old_height(0) +_impact_report_node(fgGetNode("/ai/models/model-impact", true)) { no_roll = false; @@ -505,7 +505,7 @@ bool FGAIBallistic::getHtAGL(double start){ _ht_agl_ft = pos.getElevationFt() - _elevation_m * SG_METER_TO_FEET; if (material) { - const vector& names = material->get_names(); + const std::vector& names = material->get_names(); _solid = material->get_solid(); _load_resistance = material->get_load_resistance(); _frictionFactor = material->get_friction_factor();