From 136c4aa2e6b3d200387df921c3d9064ba965cae3 Mon Sep 17 00:00:00 2001 From: shukari Date: Wed, 11 Mar 2020 11:43:52 +0100 Subject: [PATCH 1/2] fix addIntel --- addons/intelitems/functions/fnc_addIntel.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/intelitems/functions/fnc_addIntel.sqf b/addons/intelitems/functions/fnc_addIntel.sqf index 957e95cc..ef855ebd 100644 --- a/addons/intelitems/functions/fnc_addIntel.sqf +++ b/addons/intelitems/functions/fnc_addIntel.sqf @@ -33,7 +33,7 @@ if ( // Add the magazine item to the unit's inventory and get its id private _magazinesBefore = [_unit, _item] call CBA_fnc_getMagazineIndex; -_unit addMagazine _item; +_unit addMagazine [_item, 2]; private _magazinesAfter = [_unit, _item] call CBA_fnc_getMagazineIndex; private _magazineId = _magazinesAfter - _magazinesBefore; From c58746bc67d66a991dc57662e3288c91f844100a Mon Sep 17 00:00:00 2001 From: shukari Date: Wed, 11 Mar 2020 12:41:43 +0100 Subject: [PATCH 2/2] Update addons/intelitems/functions/fnc_addIntel.sqf Co-Authored-By: mharis001 <34453221+mharis001@users.noreply.github.com> --- addons/intelitems/functions/fnc_addIntel.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/intelitems/functions/fnc_addIntel.sqf b/addons/intelitems/functions/fnc_addIntel.sqf index ef855ebd..8ab202a7 100644 --- a/addons/intelitems/functions/fnc_addIntel.sqf +++ b/addons/intelitems/functions/fnc_addIntel.sqf @@ -33,7 +33,7 @@ if ( // Add the magazine item to the unit's inventory and get its id private _magazinesBefore = [_unit, _item] call CBA_fnc_getMagazineIndex; -_unit addMagazine [_item, 2]; +_unit addMagazine [_item, 1]; private _magazinesAfter = [_unit, _item] call CBA_fnc_getMagazineIndex; private _magazineId = _magazinesAfter - _magazinesBefore;