Functions should always return a value
This commit is contained in:
parent
a38d050ddf
commit
5b93117e2d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue