1
0
Fork 0

Fix a couple of issues valgrind identified.

This commit is contained in:
James Turner 2013-06-02 19:59:18 +01:00
parent def81b4de5
commit 313b31ad9a
2 changed files with 7 additions and 0 deletions

View file

@ -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 ()

View file

@ -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)),