]> git.mxchange.org Git - flightgear.git/commitdiff
- Whoops, missed committing this tiny but fatal-if-not-included change.
authorDurk Talsma <durk@linux-iue5.site>
Tue, 31 Aug 2010 14:57:07 +0000 (16:57 +0200)
committerDurk Talsma <durk@linux-iue5.site>
Tue, 31 Aug 2010 14:57:07 +0000 (16:57 +0200)
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