Arsenal - Fixed fetching loadout from extended loadout (#9045)

This commit is contained in:
zharf 2022-09-22 21:06:00 +03:00 committed by GitHub
parent 22586fc137
commit 5587d9dc69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ private _cursSelRow = lnbCurSelRow _contentPanelCtrl;
private _loadoutName = _contentPanelCtrl lnbText [_cursSelRow, 1]; private _loadoutName = _contentPanelCtrl lnbText [_cursSelRow, 1];
private _curSelLoadout = (_contentPanelCtrl getVariable (_loadoutName + str GVAR(currentLoadoutsTab))) select 0; private _curSelLoadout = (_contentPanelCtrl getVariable (_loadoutName + str GVAR(currentLoadoutsTab))) select 0;
private _extendedLoadout = GVAR(center) call FUNC(getLoadout); private _extendedLoadout = GVAR(center) call FUNC(getLoadout);
private _loadout = _loadout select 0; private _loadout = _extendedLoadout select 0;
private _loadoutIndex = _data findIf {(_x select 0) == _editBoxContent}; private _loadoutIndex = _data findIf {(_x select 0) == _editBoxContent};
private _sharedLoadoutsVars = GVAR(sharedLoadoutsNamespace) getVariable QGVAR(sharedLoadoutsVars); private _sharedLoadoutsVars = GVAR(sharedLoadoutsNamespace) getVariable QGVAR(sharedLoadoutsVars);