diff --git a/src/FDM/YASim/Airplane.cpp b/src/FDM/YASim/Airplane.cpp index 2665eb1f9..f3f792ba9 100644 --- a/src/FDM/YASim/Airplane.cpp +++ b/src/FDM/YASim/Airplane.cpp @@ -272,7 +272,7 @@ float Airplane::getTankCapacity(int tank) return ((Tank*)_tanks.get(tank))->cap; } -void Airplane::setWeight(float weight) +void Airplane::setEmptyWeight(float weight) { _emptyWeight = weight; } diff --git a/src/FDM/YASim/Airplane.hpp b/src/FDM/YASim/Airplane.hpp index a280efa8a..1f0bb47fc 100644 --- a/src/FDM/YASim/Airplane.hpp +++ b/src/FDM/YASim/Airplane.hpp @@ -16,6 +16,7 @@ class Launchbar; class Thruster; class Hitch; +/// The Airplane class ties together the different components class Airplane : public Version { public: Airplane(); @@ -32,7 +33,7 @@ public: void getPilotAccel(float* out); - void setWeight(float weight); + void setEmptyWeight(float weight); void setWing(Wing* wing); void setTail(Wing* tail); diff --git a/src/FDM/YASim/FGFDM.cpp b/src/FDM/YASim/FGFDM.cpp index acc467fc7..480376b67 100644 --- a/src/FDM/YASim/FGFDM.cpp +++ b/src/FDM/YASim/FGFDM.cpp @@ -227,7 +227,7 @@ void FGFDM::startElement(const char* name, const XMLAttributes &atts) char buf[64]; if(eq(name, "airplane")) { - _airplane.setWeight(attrf(a, "mass") * LBS2KG); + _airplane.setEmptyWeight(attrf(a, "mass") * LBS2KG); if(a->hasAttribute("version")) { _airplane.setVersion( a->getValue("version") ); }