]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/Schedule.hxx
John Ellson:
[flightgear.git] / src / Traffic / Schedule.hxx
index 6ccb5db6017306226df8ca6aab6fc5abad247b3d..315969042ff43e260ba9e4c1a0e04df81afeb7d3 100644 (file)
@@ -49,7 +49,7 @@ class FGAISchedule
   double radius;
   double groundOffset;
   double distanceToUser;
-  void* AIManagerRef;
+  int AIManagerRef;
   bool firstRun;
 
 
@@ -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; };