Skip to content

Commit

Permalink
fix(radio): Lua insertMix function not working (#4129)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored and pfeerick committed Sep 29, 2023
1 parent 50b0dd7 commit e84a365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/lua/api_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,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)) {
Expand Down

0 comments on commit e84a365

Please sign in to comment.