]> git.mxchange.org Git - flightgear.git/commitdiff
Bug fix/typo fix submitted by Tony.
authorcurt <curt>
Mon, 29 Jan 2001 04:47:16 +0000 (04:47 +0000)
committercurt <curt>
Mon, 29 Jan 2001 04:47:16 +0000 (04:47 +0000)
src/FDM/JSBSim.cxx

index 39af887e4acbaae3c6ad2c0cf66ba1f785ec54ba..7707afe48050ba372a6490b345b3f34e0e5ce1d7 100644 (file)
@@ -61,8 +61,6 @@
 FGJSBsim::FGJSBsim( double dt ) {
     bool result;
    
-    runcount=0;
-   
     fdmex=new FGFDMExec;
     fgic=new FGInitialCondition(fdmex);
     needTrim=true;
@@ -117,7 +115,6 @@ void FGJSBsim::init() {
     result = fdmex->LoadModel( aircraft_path.str(),
                               engine_path.str(),
                               fgGetString("/sim/aircraft") );
-#endif
 
     if (result) {
        FG_LOG( FG_FLIGHT, FG_INFO, "  loaded aircraft " << fgGetString("/sim/aircraft") );
@@ -127,7 +124,8 @@ void FGJSBsim::init() {
                << " does not exist" );
        exit(-1);
     }
-    
+#endif    
+
     fdmex->GetAtmosphere()->UseInternal();
   
     FG_LOG( FG_FLIGHT, FG_INFO, "  Initializing JSBSim with:" );