1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 20:35:17 +03:00

Fix getcurve reporting 0 as first x value instead of -100

This commit is contained in:
Arne Schwabe 2017-07-07 23:38:11 +02:00
parent cfcac8c51d
commit 129bbe2198

View file

@ -833,7 +833,7 @@ static int luaModelGetCurve(lua_State *L)
lua_pushstring(L, "x");
lua_newtable(L);
lua_pushinteger(L, 0);
lua_pushinteger(L, 0);
lua_pushinteger(L, -100);
lua_settable(L, -3);
for (int i=0; i < curveData.points + 3; i++) {
lua_pushinteger(L, i+1);