]> git.mxchange.org Git - flightgear.git/commitdiff
Functions should always return a value
authorfredb <fredb>
Thu, 21 May 2009 14:44:55 +0000 (14:44 +0000)
committerTim Moore <timoore@redhat.com>
Tue, 2 Jun 2009 22:18:54 +0000 (00:18 +0200)
src/AIModel/performancedata.cxx

index f07ad6132d2724fd7a86e4a343c6a1d7976327b8..1a0c5bb0a6310678ecd63b1083f1797fba3b0c53 100644 (file)
@@ -120,7 +120,8 @@ double PerformanceData::actualPitch(FGAIAircraft* ac, double tgt_pitch, double d
 
 double PerformanceData::actualAltitude(FGAIAircraft* ac, double tgt_altitude, double dt) {
     if (ac->onGround()) {
-        //FIXME: return a value here
+        //FIXME: a return sensible value here
+        return 0.0; // 0 for now to avoid compiler errors
     } else
         return ac->getAltitude() + ac->getVerticalSpeed()*dt/60.0;
 }