SG_LOG(SG_AUTOPILOT, SG_INFO, "loaded initial waypoints:" << _route.size());
}
- weightOnWheels = fgGetNode("/gear/gear[0]/wow", false);
+ weightOnWheels = fgGetNode("/gear/gear[0]/wow", true);
// check airbone flag agrees with presets
}
}
int index = aIndex;
- if ((aIndex == -1) || (aIndex > _route.size())) {
+ if ((aIndex == -1) || (aIndex > (int) _route.size())) {
index = _route.size();
}
void FGRouteMgr::currentWaypointChanged()
{
- Waypt* cur = currentWaypt();
+ Waypt* cur = (_currentIndex<numWaypts()) ? currentWaypt() : NULL;
Waypt* next = nextWaypt();
wp0->getChild("id")->setStringValue(cur ? cur->ident() : "");