]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/Schedule.hxx
NavDisplay: fix update lag when switching range or centre.
[flightgear.git] / src / Traffic / Schedule.hxx
index e41334e6b7fd9eca5c2a9bfd1e6873cc4d2206d5..e3c8d84512c3efbb75dca1af1c0a6b1c2724bbc8 100644 (file)
@@ -128,7 +128,7 @@ class FGAISchedule
   // decending order sorting, but still need to test that.
   bool operator< (const FGAISchedule &other) const;
     void taint() { valid = false; };
-    int getLastUsed() { return (int) valid;};
+    int getLastUsed() { return lastRun; };
     void setLastUsed(unsigned int val) {lastRun = val; }; 
   //void * getAiRef                 () { return AIManagerRef; };
   //FGAISchedule* getAddress        () { return this;};