From: Durk Talsma Date: Tue, 31 Aug 2010 14:57:07 +0000 (+0200) Subject: - Whoops, missed committing this tiny but fatal-if-not-included change. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=800352e26f410cbca7c399431da7b90a41b2e416;p=flightgear.git - Whoops, missed committing this tiny but fatal-if-not-included change. --- diff --git a/src/Traffic/Schedule.hxx b/src/Traffic/Schedule.hxx index bfda8c0fe..cc80e4080 100644 --- a/src/Traffic/Schedule.hxx +++ b/src/Traffic/Schedule.hxx @@ -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 ¤tDestination, const string &req); // used to sort in decending order of score: I've probably found a better way to