Fix error in setSpeed / setAltitude from Nasal
https://sourceforge.net/p/flightgear/codetickets/1992/
This commit is contained in:
parent
386c13a84d
commit
a4f1f8aca1
1 changed files with 5 additions and 3 deletions
|
@ -2509,9 +2509,10 @@ static naRef f_leg_setSpeed(naContext c, naRef me, int argc, naRef* args)
|
|||
}
|
||||
|
||||
leg->setSpeed(rr, speed);
|
||||
} else {
|
||||
naRuntimeError(c, "bad arguments to setSpeed");
|
||||
}
|
||||
|
||||
naRuntimeError(c, "bad arguments to setSpeed");
|
||||
return naNil();
|
||||
}
|
||||
|
||||
|
@ -2537,9 +2538,10 @@ static naRef f_leg_setAltitude(naContext c, naRef me, int argc, naRef* args)
|
|||
}
|
||||
|
||||
leg->setAltitude(rr, altitude);
|
||||
} else {
|
||||
naRuntimeError(c, "bad arguments to setleg.setAltitude");
|
||||
}
|
||||
|
||||
naRuntimeError(c, "bad arguments to setleg.setAltitudeSpeed");
|
||||
return naNil();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue