Arsenal - Fix stats not updating for custom buttons (#8586)

This commit is contained in:
mharis001 2021-10-26 19:05:49 -04:00 committed by GitHub
parent 08dff76593
commit ff3e0a48df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,6 @@ if (!isNil "_itemCfg") then {
] find GVAR(currentLeftPanel), true] call _handleStatsFnc;
};
} else {
switch (GVAR(currentRightPanel)) do {
case IDC_buttonOptic: {
[0, false] call _handleStatsFnc;
@ -220,6 +219,11 @@ if (!isNil "_itemCfg") then {
case IDC_buttonMisc: {
[7, false] call _handleStatsFnc;
};
default {
if (GVAR(currentRightPanel) in [RIGHT_PANEL_CUSTOM_BUTTONS]) then {
[7, false] call _handleStatsFnc;
};
};
};
};
} else {