1
0
Fork 0

Fix error in setSpeed / setAltitude from Nasal

https://sourceforge.net/p/flightgear/codetickets/1992/
This commit is contained in:
James Turner 2017-09-29 12:39:30 +01:00
parent 386c13a84d
commit a4f1f8aca1

View file

@ -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();
}