X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTraffic%2FSchedule.hxx;h=cc80e40805a2a9d9878525302d514b4f37b6bd11;hb=b3d59ed5636cc416f83db0fd5f2698759af944fb;hp=bfda8c0fe4e4ea532d7febf14628b60d3e1e325e;hpb=b090d3dabce3ad1261fb4b514cb71ed0c8a4d29b;p=flightgear.git 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