]> git.mxchange.org Git - flightgear.git/commitdiff
Anders GIDENSTAM: "Do not leak uninitialized values to the rest
authormfranz <mfranz>
Sun, 7 Dec 2008 19:47:48 +0000 (19:47 +0000)
committermfranz <mfranz>
Sun, 7 Dec 2008 19:47:48 +0000 (19:47 +0000)
of the computation."  (forward port from jsbsim/cvs)

src/FDM/JSBSim/models/propulsion/FGTank.cpp

index 5f99f402eaad2f8cc2f416c93540eee0f387024e..caa8ef2f6c96ef758ebb2000394c1bad9f7e6fec 100644 (file)
@@ -59,6 +59,7 @@ FGTank::FGTank(FGFDMExec* exec, Element* el, int tank_number)
   Element* element_Grain;
   Area = 1.0;
   Temperature = -9999.0;
+  Ixx = Iyy = Izz = 0.0;
   Auxiliary = exec->GetAuxiliary();
   Radius = Capacity = Contents = Standpipe = Length = InnerRadius = 0.0;
   PropertyManager = exec->GetPropertyManager();