Andy Ross wrote: > Frederic Bouvier wrote: > > -float Airplane::setFuel(int tank, float fuel) > > +void Airplane::setFuel(int tank, float fuel) > > Are you using an older version? The code in CVS looks fine to me. > Yes, the set method returns the current value; that's intentional > (although for all I know it is no longer used).
When I posted this, Curt was still sleeping and didn't add the return statement yet. I thought it is more logical that a setter be void instead of returning a useless value. If you look at the revision you made, there was no return. -Fred _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
