Fix a long standing bug in a code path that is probably executed very rarely.
This commit is contained in:
parent
bb413bf3e2
commit
50c7a31de8
1 changed files with 2 additions and 2 deletions
|
@ -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" );
|
||||
|
|
Loading…
Reference in a new issue