Fix a couple of issues valgrind identified.
This commit is contained in:
parent
def81b4de5
commit
313b31ad9a
2 changed files with 7 additions and 0 deletions
|
@ -107,6 +107,12 @@ GPS::GPS ( SGPropertyNode *node, bool defaultGPSMode) :
|
|||
|
||||
SGPropertyNode *wp_node = _gpsNode->getChild("wp", 0, true);
|
||||
_currentWayptNode = wp_node->getChild("wp", 1, true);
|
||||
|
||||
#if FG_210_COMPAT
|
||||
_searchIsRoute = false;
|
||||
_searchHasNext = false;
|
||||
_searchType = FGPositioned::INVALID;
|
||||
#endif
|
||||
}
|
||||
|
||||
GPS::~GPS ()
|
||||
|
|
|
@ -48,6 +48,7 @@ const int INVALID_ID = -9999;
|
|||
|
||||
Transponder::Transponder(SGPropertyNode *node)
|
||||
:
|
||||
_identMode(false),
|
||||
_name(node->getStringValue("name", "transponder")),
|
||||
_num(node->getIntValue("number", 0)),
|
||||
_mode((Mode) node->getIntValue("mode", 1)),
|
||||
|
|
Loading…
Add table
Reference in a new issue