]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a long standing bug in a code path that is probably executed very rarely.
authorcurt <curt>
Tue, 26 Jun 2007 21:29:59 +0000 (21:29 +0000)
committercurt <curt>
Tue, 26 Jun 2007 21:29:59 +0000 (21:29 +0000)
src/Autopilot/xmlauto.cxx

index 9594d5f07583dc23ed1856662f5d252d97eadf6b..babcc4550612b426b3ad7063cdee290df7991b22 100644 (file)
@@ -103,7 +103,7 @@ FGPIDController::FGPIDController( SGPropertyNode *node ):
             } else {
                 prop = child->getChild( "value" );
                 if ( prop != NULL ) {
-                    r_n = prop->getDoubleValue();
+                    r_n_value = prop->getDoubleValue();
                 }
             }
             prop = child->getChild( "scale" );
@@ -422,7 +422,7 @@ FGPISimpleController::FGPISimpleController( SGPropertyNode *node ):
             } else {
                 prop = child->getChild( "value" );
                 if ( prop != NULL ) {
-                    r_n = prop->getDoubleValue();
+                    r_n_value = prop->getDoubleValue();
                 }
             }
             prop = child->getChild( "scale" );