Fix crashes (activating the route-manager) with a default GPS.
This commit is contained in:
parent
dbd9935c52
commit
ae50c054a9
2 changed files with 2 additions and 1 deletions
|
@ -332,7 +332,7 @@ GPS::bind()
|
|||
|
||||
tie(_gpsNode, "desired-course-deg", SGRawValueMethods<GPS, double>
|
||||
(*this, &GPS::getDesiredCourse, NULL));
|
||||
_desiredCourseNode = _gpsNode->getChild("desired-course-deg");
|
||||
_desiredCourseNode = _gpsNode->getChild("desired-course-deg", 0, true);
|
||||
|
||||
tieSGGeodReadOnly(_gpsNode, _indicated_pos, "indicated-longitude-deg",
|
||||
"indicated-latitude-deg", "indicated-altitude-ft");
|
||||
|
|
|
@ -92,6 +92,7 @@ void FGInstrumentMgr::init()
|
|||
SGPropertyNode_ptr nd(new SGPropertyNode);
|
||||
nd->setStringValue("name", "gps");
|
||||
nd->setIntValue("number", 0);
|
||||
_instruments.push_back("gps[0]");
|
||||
set_subsystem("gps[0]", new GPS(nd));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue