mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Fix non-local loop variable use in fnc_fillRightPanel.sqf (#9115)
* 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 <rautamiekka@users.noreply.github.com> Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
This commit is contained in:
parent
c241f2e2a2
commit
e21ffc4c32
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user