diff --git a/Gameleap/mw4/Content/ShellScripts/ConLobby.script b/Gameleap/mw4/Content/ShellScripts/ConLobby.script index 64fc4d6e..efb30edf 100644 --- a/Gameleap/mw4/Content/ShellScripts/ConLobby.script +++ b/Gameleap/mw4/Content/ShellScripts/ConLobby.script @@ -1726,9 +1726,11 @@ main if (!equal$(szAutoMech, "")) { #if USE_ALLOWED_MECHS + // stock_array[j] = index in mech[] where chassis j lives (skips variant entries). + // mech[allowed_mechs[j]] would hit variant names; stock_array corrects this. for (j = 0; j < MAX_ALLOWED_MECHS; j++) { - if equal$(mech[allowed_mechs[j]], szAutoMech) + if equal$(mech[stock_array[allowed_mechs[j]]], szAutoMech) { o_mech_variant[k].nselected = j break