]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIGAVFRTraffic.hxx
This innocuous looking typo was crashing the sim whenever an AI plane was asked to...
[flightgear.git] / src / ATC / AIGAVFRTraffic.hxx
index c094f60a437fa61b1dc76abbccf7cf40380df5b3..fcfc79d4b3a1a82dba83c4b4c4396ba9feb6ec89 100644 (file)
@@ -17,7 +17,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.
 
 #ifndef _FG_AIGAVFRTraffic_HXX
 #define _FG_AIGAVFRTraffic_HXX
@@ -42,9 +42,9 @@ public:
        ~FGAIGAVFRTraffic();
        
        // Init en-route to destID at point pt. (lat, lon, elev) (elev in meters, lat and lon in degrees).
-       bool Init(Point3D pt, string destID, const string& callsign);
+       bool Init(const Point3D& pt, const string& destID, const string& callsign);
        // Init at srcID to fly to destID
-       bool Init(string srcID, string destID, const string& callsign, OperatingState state = PARKED);
+       bool Init(const string& srcID, const string& destID, const string& callsign, OperatingState state = PARKED);
        
        // Run the internal calculations
        void Update(double dt);