From e21ffc4c328840a68338a2c98b02b042d32cbdc9 Mon Sep 17 00:00:00 2001 From: TACHarsis <101965352+TACHarsis@users.noreply.github.com> Date: Fri, 6 Jan 2023 03:45:13 +0100 Subject: [PATCH] Arsenal - Fix non-local loop variable use in fnc_fillRightPanel.sqf (#9115) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed use of loop variable from outside of function and using local variable instead * Update addons/arsenal/functions/fnc_fillRightPanel.sqf Co-authored-by: Jouni Järvinen Co-authored-by: Jouni Järvinen --- addons/arsenal/functions/fnc_fillRightPanel.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/arsenal/functions/fnc_fillRightPanel.sqf b/addons/arsenal/functions/fnc_fillRightPanel.sqf index 281662ec0c..9ad7bb3c5a 100644 --- a/addons/arsenal/functions/fnc_fillRightPanel.sqf +++ b/addons/arsenal/functions/fnc_fillRightPanel.sqf @@ -65,12 +65,12 @@ private _fnc_fill_right_Container = { private _lbAdd = _ctrlPanel lnbAddRow ["", _displayName, "0"]; private _columns = count lnbGetColumnsPosition _ctrlPanel; - _ctrlPanel lnbSetData [[_lbAdd, 0], _x]; + _ctrlPanel lnbSetData [[_lbAdd, 0], _className]; _ctrlPanel lnbSetPicture [[_lbAdd, 0], _picture]; _ctrlPanel lnbSetValue [[_lbAdd, 0], _mass]; - _ctrlPanel setVariable [_x, _mass]; + _ctrlPanel setVariable [_className, _mass]; _ctrlPanel lnbSetValue [[_lbAdd, 2], [0, 1] select (_isUnique)]; - _ctrlPanel lbSetTooltip [_lbAdd * _columns,format ["%1\n%2", _displayName, _x]]; + _ctrlPanel lbSetTooltip [_lbAdd * _columns, format ["%1\n%2", _displayName, _className]]; }; // Retrieve compatible mags