fix(radio): Lua insertMix function not working (#4129)

This commit is contained in:
philmoz
2023-09-29 11:34:34 +10:00
committed by GitHub
parent 4c95d665b6
commit a60cf67fb2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -890,7 +890,7 @@ static int luaModelInsertMix(lua_State *L)
if (chn<MAX_OUTPUT_CHANNELS && getMixCount()<MAX_MIXERS && idx<=count) {
idx += first;
insertMix(idx, chn + 1);
insertMix(idx, chn);
MixData *mix = mixAddress(idx);
luaL_checktype(L, -1, LUA_TTABLE);
for (lua_pushnil(L); lua_next(L, -2); lua_pop(L, 1)) {