]> git.mxchange.org Git - flightgear.git/commitdiff
Fix #953.
authorThomas Geymayer <tomgey@gmail.com>
Mon, 3 Dec 2012 08:28:48 +0000 (09:28 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 3 Dec 2012 08:28:48 +0000 (09:28 +0100)
src/FDM/YASim/FGFDM.cpp

index 00c818ff8cd80876ee189f610a6055fcf6877ab9..ab62a33b65e27d7bc8982189b1920a4c46ff8282 100644 (file)
@@ -131,7 +131,7 @@ void FGFDM::init()
     // Allows the user to start with something other than full fuel
     _airplane.setFuelFraction(fgGetFloat("/sim/fuel-fraction", 1));
 
-    // Read out the resulting fuel state and stash engine/thruster properties
+    // stash engine/thruster properties
     _thrust_props.clear();
     for (int i=0; i<_thrusters.size(); i++) {
         SGPropertyNode_ptr node = fgGetNode("engines/engine", i, true);
@@ -173,8 +173,8 @@ void FGFDM::init()
         _thrust_props.push_back(tp);
     }
 
-    // stash properties for engines/fuel state
-    _thrust_props.clear();
+    // stash properties for fuel state
+    _fuel_props.clear();
     for(int i=0; i<_airplane.numThrusters(); i++) {
         SGPropertyNode_ptr e = fgGetNode("engines/engine", i, true);
         FuelProps f;