Fix another crash in the autobrake code, with 'aircraft' (eg, ATC) with no weight-on-wheels flag. Thanks to Jacob Burbach for the report.
This commit is contained in:
parent
4ccef76fc4
commit
26cd4f92c5
1 changed files with 4 additions and 0 deletions
|
@ -96,6 +96,10 @@ void FGAutoBrake::postinit()
|
|||
{
|
||||
_weightOnWheelsNode = fgGetNode("/gear/gear/wow");
|
||||
_groundspeedNode = fgGetNode("/velocities/groundspeed-kt");
|
||||
if (!_weightOnWheelsNode) {
|
||||
return; // don't crash if we're using an acft (UFO, ATC, with no WoW flag)
|
||||
}
|
||||
|
||||
_lastWoW = _weightOnWheelsNode->getBoolValue();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue