Fixed deprecated delete_gun function

This commit is contained in:
ulteq 2015-04-17 11:05:24 +02:00
parent 4ef80ab3a3
commit e04a0c438a

View File

@ -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];