Nasal FlightPlan insertWp[After] return the leg.
This commit is contained in:
parent
b0de9d5a11
commit
1b8d0fb277
1 changed files with 4 additions and 4 deletions
|
@ -2279,8 +2279,8 @@ static naRef f_flightplan_insertWP(naContext c, naRef me, int argc, naRef* args)
|
|||
index = (int) args[1].num;
|
||||
}
|
||||
|
||||
fp->insertWayptAtIndex(wp.get(), index);
|
||||
return naNil();
|
||||
auto leg = fp->insertWayptAtIndex(wp.get(), index);
|
||||
return ghostForLeg(c, leg);
|
||||
}
|
||||
|
||||
static naRef f_flightplan_insertWPAfter(naContext c, naRef me, int argc, naRef* args)
|
||||
|
@ -2296,8 +2296,8 @@ static naRef f_flightplan_insertWPAfter(naContext c, naRef me, int argc, naRef*
|
|||
index = (int) args[1].num;
|
||||
}
|
||||
|
||||
fp->insertWayptAtIndex(wp.get(), index + 1);
|
||||
return naNil();
|
||||
auto leg = fp->insertWayptAtIndex(wp.get(), index + 1);
|
||||
return ghostForLeg(c, leg);
|
||||
}
|
||||
|
||||
static naRef f_flightplan_insertWaypoints(naContext c, naRef me, int argc, naRef* args)
|
||||
|
|
Loading…
Add table
Reference in a new issue