mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix findIf typo, Don't deep copy arrays (#6587)
This commit is contained in:
parent
8587da58cb
commit
a6d40549dc
@ -33,7 +33,7 @@ private _loadoutName = _contentPanelCtrl lnbText [_cursSelRow, 1];
|
||||
private _curSelLoadout = (_contentPanelCtrl getVariable (_loadoutName + str GVAR(currentLoadoutsTab))) select 0;
|
||||
private _loadout = getUnitLoadout GVAR(center);
|
||||
|
||||
private _loadoutIndex = (+(_data)) findIf {(_x select 0) == _editBoxContent};
|
||||
private _loadoutIndex = _data findIf {(_x select 0) == _editBoxContent};
|
||||
private _sharedLoadoutsVars = GVAR(sharedLoadoutsNamespace) getVariable QGVAR(sharedLoadoutsVars);
|
||||
|
||||
// Make sure the loadout isn't yours (public tab) or being shared (my loadouts tab)
|
||||
@ -155,7 +155,7 @@ switch (GVAR(currentLoadoutsTab)) do {
|
||||
|
||||
if (is3DEN) then {
|
||||
|
||||
private _loadoutIndex = (+(_data)) findId {(_x select 0) == _editBoxContent};
|
||||
private _loadoutIndex = _data findIf {(_x select 0) == _editBoxContent};
|
||||
|
||||
for "_dataIndex" from 0 to 10 do {
|
||||
switch (_dataIndex) do {
|
||||
|
Loading…
Reference in New Issue
Block a user