]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/Schedule.hxx
Fixed an property tieing issue on sim reset.
[flightgear.git] / src / Traffic / Schedule.hxx
index bfda8c0fe4e4ea532d7febf14628b60d3e1e325e..cc80e40805a2a9d9878525302d514b4f37b6bd11 100644 (file)
@@ -115,7 +115,7 @@ class FGAISchedule
 
   void         setrunCount(unsigned int count) { runCount = count; };
   void         setHits    (unsigned int count) { hits     = count; };
-  void         setScore   () { score = runCount ? ((double) hits / (double) runCount) : 0; };
+  void         setScore   ();
   double       getScore   () { return score; };
   FGScheduledFlight*findAvailableFlight (const string &currentDestination, const string &req);
   // used to sort in decending order of score: I've probably found a better way to