]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/Schedule.hxx
Fix for an AIFlightPlan initialization problem in the traffic manager.
[flightgear.git] / src / Traffic / Schedule.hxx
index b099bd08c20f27cc0a54586174c70492b0139602..daaa4e2406c250a81a6a0acd847c22c87706f985 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  *
  *
  **************************************************************************/
@@ -73,11 +73,11 @@ class FGAISchedule
   int         getCruiseAlt        () { return flights.begin()->getCruiseAlt       (); };
   double      getRadius           () { return radius; };
   double      getGroundOffset     () { return groundOffset;};
-  string      getFlightType       () { return flightType;};
-  string      getAirline          () { return airline; };
-  string      getAircraft         () { return acType; };
-  string      getCallSign         () { return flights.begin()->getCallSign (); };
-  string      getRegistration     () { return registration;};
+  const string& getFlightType     () { return flightType;};
+  const string& getAirline        () { return airline; };
+  const string& getAircraft       () { return acType; };
+  const string& getCallSign       () { return flights.begin()->getCallSign (); };
+  const string& getRegistration   () { return registration;};
   bool getHeavy                   () { return heavy; };
   bool operator< (const FGAISchedule &other) const { return (distanceToUser < other.distanceToUser); };
   //void * getAiRef                 () { return AIManagerRef; };