]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGTank.cpp
Rolled last change back out -- it was causing the default 172 to hang
[flightgear.git] / src / FDM / JSBSim / FGTank.cpp
index 83d85744ffc62ed83b9029f8f8afe3bdb561df6d..664b6b4ce006108c85c02b4329f65b0de2e10351 100644 (file)
@@ -54,7 +54,6 @@ CLASS IMPLEMENTATION
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 FGTank::FGTank(FGConfigFile* AC_cfg)
-    : Contents(-1.0)
 {
   string token;
   
@@ -71,9 +70,8 @@ FGTank::FGTank(FGConfigFile* AC_cfg)
     else if (token == "ZLOC") *AC_cfg >> Z;
     else if (token == "RADIUS") *AC_cfg >> Radius;
     else if (token == "CAPACITY") *AC_cfg >> Capacity;
-    else if (token == "CONTENTS") {
-        if (Contents == -1.0) *AC_cfg >> Contents;
-    } else cerr << "Unknown identifier: " << token << " in tank definition." << endl;
+    else if (token == "CONTENTS") *AC_cfg >> Contents;
+    else cerr << "Unknown identifier: " << token << " in tank definition." << endl;
   }
   
   Selected = true;