Skip to content

Commit

Permalink
Arsenal - Fix stats not updating for custom buttons (acemod#8586)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 authored and AndreasBrostrom committed Dec 3, 2021
1 parent 6f934b8 commit 9252a70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/arsenal/functions/fnc_handleStats.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9252a70

Please sign in to comment.