mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed deprecated delete_gun function
This commit is contained in:
parent
4ef80ab3a3
commit
e04a0c438a
@ -20,10 +20,8 @@ _index = lbCurSel 6000;
|
|||||||
|
|
||||||
if (_index == -1) exitWith {};
|
if (_index == -1) exitWith {};
|
||||||
|
|
||||||
for "_i" from 0 to (count GVAR(currentGun)) - 1 do {
|
if (GVAR(currentGun) > _index) then {
|
||||||
if ((GVAR(currentGun) select _i) > _index) then {
|
GVAR(currentGun) = GVAR(currentGun) - 1;
|
||||||
GVAR(currentGun) set [_i, (GVAR(currentGun) select _i) - 1];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GVAR(gunList) set [_index, 0];
|
GVAR(gunList) set [_index, 0];
|
||||||
|
Loading…
Reference in New Issue
Block a user