Permit an invalid index to be set on a flight-plan.
This commit is contained in:
parent
71622dc3ca
commit
5808ed1b62
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ int FlightPlan::clearWayptsWithFlag(WayptFlag flag)
|
|||
|
||||
void FlightPlan::setCurrentIndex(int index)
|
||||
{
|
||||
if ((index < 0) || (index >= numLegs())) {
|
||||
if ((index < -1) || (index >= numLegs())) {
|
||||
throw sg_range_exception("invalid leg index", "FlightPlan::setCurrentIndex");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue