From: mfranz Date: Sun, 7 Dec 2008 19:47:48 +0000 (+0000) Subject: Anders GIDENSTAM: "Do not leak uninitialized values to the rest X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=32d3f6308c8a3b62584ee8420d3a90df40bcc07e;p=flightgear.git Anders GIDENSTAM: "Do not leak uninitialized values to the rest of the computation." (forward port from jsbsim/cvs) --- diff --git a/src/FDM/JSBSim/models/propulsion/FGTank.cpp b/src/FDM/JSBSim/models/propulsion/FGTank.cpp index 5f99f402e..caa8ef2f6 100644 --- a/src/FDM/JSBSim/models/propulsion/FGTank.cpp +++ b/src/FDM/JSBSim/models/propulsion/FGTank.cpp @@ -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();