mirror of
https://github.com/opentx/opentx.git
synced 2025-07-18 05:45:21 +03:00
Fixes #2084: wrong constant used to limit maximum number of expos (ported from master)
This commit is contained in:
parent
ddf88e2721
commit
74af80e8be
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ static int luaModelInsertInput(lua_State *L)
|
|||
unsigned int first = getFirstInput(chn);
|
||||
unsigned int count = getInputsCountFromFirst(chn, first);
|
||||
|
||||
if (chn<MAX_INPUTS && getExpoMixCount(1)<MAX_INPUTS && idx<=count) {
|
||||
if (chn<MAX_INPUTS && getExpoMixCount(1)<MAX_EXPOS && idx<=count) {
|
||||
idx = first + idx;
|
||||
s_currCh = chn + 1;
|
||||
insertExpoMix(1, idx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue