Fix an uninitialized value valgrind warning.
This commit is contained in:
parent
be30c2d53b
commit
9626805a09
2 changed files with 13 additions and 7 deletions
|
@ -57,6 +57,7 @@ void FGAICarrier::readFromScenario(SGPropertyNode* scFileNode) {
|
|||
setMaxLong(scFileNode->getDoubleValue("max-long", 0));
|
||||
setMinLong(scFileNode->getDoubleValue("min-long", 0));
|
||||
setMPControl(scFileNode->getBoolValue("mp-control", false));
|
||||
setAIControl(scFileNode->getBoolValue("ai-control", false));
|
||||
|
||||
SGPropertyNode* flols = scFileNode->getChild("flols-pos");
|
||||
if (flols) {
|
||||
|
@ -121,6 +122,10 @@ void FGAICarrier::setMPControl(bool c) {
|
|||
MPControl = c;
|
||||
}
|
||||
|
||||
void FGAICarrier::setAIControl(bool c) {
|
||||
AIControl = c;
|
||||
}
|
||||
|
||||
void FGAICarrier::update(double dt) {
|
||||
// Now update the position and heading. This will compute new hdg and
|
||||
// roll values required for the rotation speed computation.
|
||||
|
|
|
@ -58,6 +58,7 @@ public:
|
|||
void setMaxLong( double deg );
|
||||
void setMinLong( double deg );
|
||||
void setMPControl( bool c );
|
||||
void setAIControl( bool c );
|
||||
void TurnToLaunch();
|
||||
void TurnToRecover();
|
||||
void TurnToBase();
|
||||
|
|
Loading…
Add table
Reference in a new issue