diff --git a/addons/killers/functions/fnc_fillKillersStash.sqf b/addons/killers/functions/fnc_fillKillersStash.sqf index 2f940750..bcd56050 100644 --- a/addons/killers/functions/fnc_fillKillersStash.sqf +++ b/addons/killers/functions/fnc_fillKillersStash.sqf @@ -32,7 +32,7 @@ for "_y" from 0 to _itemsCount step 1 do { private _stashAvailableCommonItemsCount = count EGVAR(equipment,killersStashCommonEquipment); private _commonItemsCount = ceil (random 3) + floor (_stashAvailableCommonItemsCount/10); -for "_y" from 0 to _itemsCount step 1 do { +for "_y" from 0 to _commonItemsCount step 1 do { // Add common equipment private _newCommonItem = selectRandom EGVAR(equipment,killersStashCommonEquipment); private _itemQuantity = ceil (random 2); diff --git a/addons/killers/functions/fnc_initKillersStashes.sqf b/addons/killers/functions/fnc_initKillersStashes.sqf index a47137a1..2226b73a 100644 --- a/addons/killers/functions/fnc_initKillersStashes.sqf +++ b/addons/killers/functions/fnc_initKillersStashes.sqf @@ -29,6 +29,8 @@ for "_y" from 0 to _createStatshesCount step 1 do { private _stashPos = getPos _stash; private _box = createVehicle ["O_CargoNet_01_ammo_F", _stashPos, [], 0, "NONE"]; clearItemCargoGlobal _box; + clearWeaponCargoGlobal _box; + clearMagazineCargoGlobal _box; _box setVariable [QGVAR(killersStash), _stash]; _stash setVariable [QGVAR(box), _box]; _box call FUNC(fillKillersStash);