From 800352e26f410cbca7c399431da7b90a41b2e416 Mon Sep 17 00:00:00 2001 From: Durk Talsma Date: Tue, 31 Aug 2010 16:57:07 +0200 Subject: [PATCH] - Whoops, missed committing this tiny but fatal-if-not-included change. --- src/Traffic/Schedule.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5