]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/route_mgr.cxx
Create a "passive" mode for the autopilot. This is analogous to running the
[flightgear.git] / src / Autopilot / route_mgr.cxx
index 3e7c031772b2edc89c50f2db2faea4490a9ade1a..f9175aa1e3e3fb89c3ca1b8e1a079d36bdfe523f 100644 (file)
@@ -305,7 +305,7 @@ int FGRouteMgr::make_waypoint( SGWayPoint **wp, const string& tgt ) {
 
     // extract altitude
     double alt = -9999.0;
-    unsigned int pos = target.find( '@' );
+    size_t pos = target.find( '@' );
     if ( pos != string::npos ) {
         alt = atof( target.c_str() + pos + 1 );
         target = target.substr( 0, pos );